]> git.ipfire.org Git - thirdparty/linux.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)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 13 Mar 2025 20:40:17 +0000 (16:40 -0400)
commit72d061ee630d0dbb45c2920d8d19b3861c413e54
treeaa54efecb3ba7030684e48b07e16a2fa18aa4158
parent2409fa66e29a2c09f26ad320735fbdfbb74420da
Bluetooth: Fix error code in chan_alloc_skb_cb()

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>
net/bluetooth/6lowpan.c