diff options
| author | Zhao Dongdong <zhaodongdong@kylinos.cn> | 2026-05-26 11:21:39 +0800 |
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2026-05-27 16:44:02 -0400 |
| commit | 3c40d381ce04f9575a5d8b542898183c3b4b38dc (patch) | |
| tree | 0a8fd859ef2298f657365e4bc5d135bdf4b4cf3c /drivers | |
| parent | 82855073c1081732656734b74d7d1d5e4cfd0da7 (diff) | |
Bluetooth: 6lowpan: check skb_clone() return value in send_mcast_pkt()
The skb_clone() function can return NULL if memory allocation fails.
send_mcast_pkt() calls skb_clone() without checking the return value, which
can lead to a NULL pointer dereference in send_pkt() when it dereferences
skb->data.
Add a NULL check after skb_clone() and skip the peer if the clone fails.
Fixes: 18722c247023 ("Bluetooth: Enable 6LoWPAN support for BT LE devices")
Signed-off-by: Zhao Dongdong <zhaodongdong@kylinos.cn>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions
