]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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 19:00:59 +0000 (21:00 +0200)
commitf9b183f1332ad0ed23317a980064d53d8028a280
tree2a64ae0eaa806cbb25499b740a7bd9f329aa74a2
parent647b35aaf454271d68067d4bf05154095fe63f93
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