On Sun, Jul 04, 2021 at 04:55:04PM +0200, John Wood wrote:
The alloc_skb function returns NULL on error. So, test this case and avoid a NULL dereference (skb->data).
Addresses-Coverity-ID: 1484718 ("Dereference null return value") Fixes: afd2daa26c7ab ("Bluetooth: Add support for virtio transport driver") Signed-off-by: John Wood john.wood@gmx.com
drivers/bluetooth/virtio_bt.c | 2 ++ 1 file changed, 2 insertions(+)
<formletter>
This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.
</formletter>