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, 24 Jul 2023 23:25:14 +0000 (08:25 +0900)
commit54558c86e3d3adf2232b7cdfa8f25a9089f68967
tree60c862218aa9970363a6070fd10fe33a70697180
parentb3b4886b4ad0ad7de29a232377ff47e6316f00ef
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