]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: Fix error code in chan_alloc_skb_cb()
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 10 Mar 2025 19:46:56 +0000 (22:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Mar 2025 20:59:00 +0000 (21:59 +0100)
commit788ae2ae4cf484e248b5bc29211c7ac6510e3e92
treeac58363237747d5255027a47ad0155b3249fdc90
parent2c160e6868eaf30a010843f78fb8182544802f06
Bluetooth: Fix error code in chan_alloc_skb_cb()

[ Upstream commit 72d061ee630d0dbb45c2920d8d19b3861c413e54 ]

The chan_alloc_skb_cb() function is supposed to return error pointers on
error.  Returning NULL will lead to a NULL dereference.

Fixes: 6b8d4a6a0314 ("Bluetooth: 6LoWPAN: Use connected oriented channel instead of fixed one")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/6lowpan.c