]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: 6LoWPAN: add missing hci_dev_put() in get_l2cap_conn()
authorWang ShaoBo <bobo.shaobowang@huawei.com>
Wed, 9 Nov 2022 09:37:26 +0000 (17:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Dec 2022 10:30:45 +0000 (11:30 +0100)
commit40e9d89220d0f239cb3a781932d06f95a2af5cc9
treefd81594ff60c7a0db1a0820ac87e3b6bcd09f8d8
parent522f7f88cb4c695e4b6a02b6f65d00cbec6c68cb
Bluetooth: 6LoWPAN: add missing hci_dev_put() in get_l2cap_conn()

[ Upstream commit 81b3d78956540ff26449ee1843838c5374d1b9d7 ]

hci_get_route() takes reference, we should use hci_dev_put() to release
it when not need anymore.

Fixes: 627604f9ba60 ("Bluetooth: 6LoWPAN: Use connected oriented channel instead of fixed one")
Signed-off-by: Wang ShaoBo <bobo.shaobowang@huawei.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/6lowpan.c