Bluetooth: Fix not checking for valid hdev on bt_dev_{info,warn,err,dbg}
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 3 Mar 2022 21:11:57 +0000 (13:11 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:59:08 +0000 (20:59 +0200)
commit0000de40b9f35c300e8e2328f30113145ad04796
tree4bc76fbdf90b298b71102cfc9c54ffcf9c95ca7f
parentbb78c3b11f4d8d8fac4b19b5fd0b1c3b21465cd1
Bluetooth: Fix not checking for valid hdev on bt_dev_{info,warn,err,dbg}

[ Upstream commit 9b392e0e0b6d026da5a62bb79a08f32e27af858e ]

This fixes attemting to print hdev->name directly which causes them to
print an error:

kernel: read_version:367: (efault): sock 000000006a3008f2

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/bluetooth/bluetooth.h