]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:12:31 +0000 (15:12 +0100)
commit2a0a658ed6ef6bbddf700d1c2e1690e4e8054117
tree8ae8f749b236d6cf7fa515a05d7069a4f9e260d0
parentecd50f820d864c61b97a85492417547f97753d19
Bluetooth: SMP: Fix crash when receiving new connection when debug is enabled

commit 995fca15b73ff8f92888cc2d5d95f17ffdac74ba upstream.

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: 2e1614f7d61e4 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bluetooth/smp.c