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)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 4 Mar 2022 15:10:50 +0000 (16:10 +0100)
commit9b392e0e0b6d026da5a62bb79a08f32e27af858e
tree314adbdf16f0f318a784f53bfe2a1ad0f74b4071
parente4412654e260842e1a94ffe0d4026e8a6fd34246
Bluetooth: Fix not checking for valid hdev on bt_dev_{info,warn,err,dbg}

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>
include/net/bluetooth/bluetooth.h