Merge tag 'char-misc-5.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregk...
[linux-2.6-microblaze.git] / block / bsg-lib.c
index d185396..330fede 100644 (file)
@@ -207,7 +207,7 @@ static int bsg_map_buffer(struct bsg_buffer *buf, struct request *req)
 
        BUG_ON(!req->nr_phys_segments);
 
-       buf->sg_list = kzalloc(sz, GFP_KERNEL);
+       buf->sg_list = kmalloc(sz, GFP_KERNEL);
        if (!buf->sg_list)
                return -ENOMEM;
        sg_init_table(buf->sg_list, req->nr_phys_segments);