aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/f_fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/f_fs.c')
-rw-r--r--drivers/usb/gadget/f_fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c
index acb38004eec0..da9d04815ea5 100644
--- a/drivers/usb/gadget/f_fs.c
+++ b/drivers/usb/gadget/f_fs.c
@@ -1408,7 +1408,7 @@ static int ffs_epfiles_create(struct ffs_data *ffs)
1408 ENTER(); 1408 ENTER();
1409 1409
1410 count = ffs->eps_count; 1410 count = ffs->eps_count;
1411 epfiles = kzalloc(count * sizeof *epfiles, GFP_KERNEL); 1411 epfiles = kcalloc(count, sizeof(*epfiles), GFP_KERNEL);
1412 if (!epfiles) 1412 if (!epfiles)
1413 return -ENOMEM; 1413 return -ENOMEM;
1414 1414