summaryrefslogtreecommitdiff
path: root/drivers/bluetooth/virtio_bt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bluetooth/virtio_bt.c')
-rw-r--r--drivers/bluetooth/virtio_bt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/virtio_bt.c b/drivers/bluetooth/virtio_bt.c
index 6f1a37e85c6a..bc33d2755ced 100644
--- a/drivers/bluetooth/virtio_bt.c
+++ b/drivers/bluetooth/virtio_bt.c
@@ -275,7 +275,7 @@ static int virtbt_probe(struct virtio_device *vdev)
return -EINVAL;
}
- vbt = kzalloc(sizeof(*vbt), GFP_KERNEL);
+ vbt = kzalloc_obj(*vbt, GFP_KERNEL);
if (!vbt)
return -ENOMEM;