Parent: 1bf0336942fd093a0f8fa890eb026e1dc379f35f
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2018-02-20 16:43:07
Tree: 5905f1ae0ee00c971c2b448a24def5125300a880
adapter: Fix crash when discovering If client exits while start discovery command is pending it may produce the following crash: Invalid read of size 8 at 0x49036E: start_discovery_complete (adapter.c:1428) by 0x4D4957: request_complete (mgmt.c:261) by 0x4D5BD4: can_read_data (mgmt.c:353) by 0x4E717A: watch_callback (io-glib.c:170) by 0x50CEB76: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.5400.3) by 0x50CEF1F: ??? (in /usr/lib64/libglib-2.0.so.0.5400.3) by 0x50CF231: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.5400.3) by 0x40CEC0: main (main.c:770) Address 0x0 is not stack'd, malloc'd or (recently) free'd
Diffstat
| M | src/adapter.c | | | 6 | ++++- - |
1 files changed, 4 insertions(+), 2 deletions(-)