diff options
Diffstat (limited to 'block/fops.c')
| -rw-r--r-- | block/fops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block/fops.c b/block/fops.c index 4d32785b31d9..bb6642b45937 100644 --- a/block/fops.c +++ b/block/fops.c @@ -65,8 +65,7 @@ static ssize_t __blkdev_direct_IO_simple(struct kiocb *iocb, if (nr_pages <= DIO_INLINE_BIO_VECS) vecs = inline_vecs; else { - vecs = kmalloc_array(nr_pages, sizeof(struct bio_vec), - GFP_KERNEL); + vecs = kmalloc_objs(struct bio_vec, nr_pages); if (!vecs) return -ENOMEM; } |
