Bluetooth: Fix the potential crash issue
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 4 Jul 2019 00:18:21 +0000 (09:18 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Thu, 3 Aug 2023 08:43:51 +0000 (17:43 +0900)
commite0d5aad0a32f873119803649fd5494c9e2d8a91f
tree170aa72fa28060b320fc2fa24f6dd329d061a500
parent49c47284bdd3948c839f5bad3e4fbf1e16eaff5a
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