Loading fs/ramfs/file-nommu.c +1 −1 Original line number Diff line number Diff line Loading @@ -222,7 +222,7 @@ static unsigned long ramfs_nommu_get_unmapped_area(struct file *file, /* gang-find the pages */ ret = -ENOMEM; pages = kzalloc(lpages * sizeof(struct page *), GFP_KERNEL); pages = kcalloc(lpages, sizeof(struct page *), GFP_KERNEL); if (!pages) goto out_free; Loading Loading
fs/ramfs/file-nommu.c +1 −1 Original line number Diff line number Diff line Loading @@ -222,7 +222,7 @@ static unsigned long ramfs_nommu_get_unmapped_area(struct file *file, /* gang-find the pages */ ret = -ENOMEM; pages = kzalloc(lpages * sizeof(struct page *), GFP_KERNEL); pages = kcalloc(lpages, sizeof(struct page *), GFP_KERNEL); if (!pages) goto out_free; Loading