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>
Wed, 23 Nov 2022 02:23:12 +0000 (11:23 +0900)
commitd144a7d33c1b24cac2f00f1e41f5804ed0a75d6e
treefdc5626a134680bdc72fb8c7e8f726bd10dad88f
parent0bda2c72d4b75cd04f8cc6e7da96c2cab3598c41
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