Bluetooth: Fix the potential crash issue 55/209255/2
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 4 Jul 2019 00:18:21 +0000 (09:18 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 4 Jul 2019 03:58:10 +0000 (03:58 +0000)
commit09499eb15be25af1b0b59bdcdc5ceb2e6eda8585
treec6978215cc6a838b25de4cbdb9a3a5699cf65e87
parent5410fa1888028986cef4edfed467780a980be8c6
Bluetooth: Fix the potential crash issue

There is a logic error in the event function. We should
check the callback function's parameter before calling.

Change-Id: I06a4a8c50317e5ec4ae8fe35e4b788105e090196
Fixes: bde01c80dd51 ("Bluetooth: Set le data length command and event")
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
net/bluetooth/hci_event.c