]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: SMP: Fix crash when receiving new connection when debug is enabled
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 14 Jun 2021 17:46:44 +0000 (10:46 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Jun 2021 20:16:27 +0000 (22:16 +0200)
commit5cf4494c1d562b312eaf50863d544aa654eb9ddd
tree2c81db89ed0017f6aa6e0d26a1b02cf11ea045c7
parent5c9fab2930ec42d387a4ba6ac87fbd738bb7c29c
Bluetooth: SMP: Fix crash when receiving new connection when debug is enabled

When receiving a new connection pchan->conn won't be initialized so the
code cannot use bt_dev_dbg as the pointer to hci_dev won't be
accessible.

Fixes: 3dae2c2126dfb ("Bluetooth: SMP: Convert BT_ERR/BT_DBG to bt_dev_err/bt_dev_dbg")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/smp.c