Bluetooth: Fix the potential crash issue 81/294181/2
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 4 Jul 2019 00:18:21 +0000 (09:18 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Wed, 14 Jun 2023 05:01:52 +0000 (14:01 +0900)
commit4d6817748068c9b77f7a78539dfd9d4ba62c69a6
treefec78424aed0ef19171710707529d51c32219f7d
parent7852afb2406dfb90c4430941249b7c95b31e3fd6
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