projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'kgdb-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt...
[linux-2.6-microblaze.git]
/
drivers
/
bluetooth
/
virtio_bt.c
diff --git
a/drivers/bluetooth/virtio_bt.c
b/drivers/bluetooth/virtio_bt.c
index
c804db7
..
57908ce
100644
(file)
--- a/
drivers/bluetooth/virtio_bt.c
+++ b/
drivers/bluetooth/virtio_bt.c
@@
-34,6
+34,9
@@
static int virtbt_add_inbuf(struct virtio_bluetooth *vbt)
int err;
skb = alloc_skb(1000, GFP_KERNEL);
+ if (!skb)
+ return -ENOMEM;
+
sg_init_one(sg, skb->data, 1000);
err = virtqueue_add_inbuf(vq, sg, 1, skb, GFP_KERNEL);