|
@@ -1776,7 +1776,7 @@ long fuse_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg,
|
|
BUILD_BUG_ON(sizeof(struct fuse_ioctl_iovec) * FUSE_IOCTL_MAX_IOV > PAGE_SIZE);
|
|
BUILD_BUG_ON(sizeof(struct fuse_ioctl_iovec) * FUSE_IOCTL_MAX_IOV > PAGE_SIZE);
|
|
|
|
|
|
err = -ENOMEM;
|
|
err = -ENOMEM;
|
|
- pages = kzalloc(sizeof(pages[0]) * FUSE_MAX_PAGES_PER_REQ, GFP_KERNEL);
|
|
|
|
|
|
+ pages = kcalloc(FUSE_MAX_PAGES_PER_REQ, sizeof(pages[0]), GFP_KERNEL);
|
|
iov_page = (struct iovec *) __get_free_page(GFP_KERNEL);
|
|
iov_page = (struct iovec *) __get_free_page(GFP_KERNEL);
|
|
if (!pages || !iov_page)
|
|
if (!pages || !iov_page)
|
|
goto out;
|
|
goto out;
|