Bluetooth: Fix the potential crash issue
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 4 Jul 2019 00:18:21 +0000 (09:18 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 19 Feb 2024 00:13:53 +0000 (09:13 +0900)
commit264f6c0d336d8da559d2025f6fa7f7ccbaef5e81
tree257b7a5192ed8731293e4eec92ea9c2e072114d2
parent27317589e915b48160f17945e35d0949581fd85f
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
net/bluetooth/hci_event.c