Bluetooth: Fix the potential crash issue
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 4 Jul 2019 00:18:21 +0000 (09:18 +0900)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 2 Apr 2020 04:09:06 +0000 (13:09 +0900)
commit31e355967dc1bd5718c8b15a3d4644c2811f0964
tree7fa5e83fc9fb35edcde8ea9e8afdddd62b1cac70
parent15d6c14bd65dd22a3cee34cc58eb2a5162adb725
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