diff options
Diffstat (limited to 'drivers/mtd/ubi/scan.c')
-rw-r--r-- | drivers/mtd/ubi/scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c index 18c347b24e27..1c1401d6958b 100644 --- a/drivers/mtd/ubi/scan.c +++ b/drivers/mtd/ubi/scan.c | |||
@@ -323,7 +323,7 @@ static int compare_lebs(const struct ubi_device *ubi, | |||
323 | } else { | 323 | } else { |
324 | pnum = seb->pnum; | 324 | pnum = seb->pnum; |
325 | 325 | ||
326 | vh = ubi_zalloc_vid_hdr(ubi); | 326 | vh = ubi_zalloc_vid_hdr(ubi, GFP_KERNEL); |
327 | if (!vh) | 327 | if (!vh) |
328 | return -ENOMEM; | 328 | return -ENOMEM; |
329 | 329 | ||
@@ -948,7 +948,7 @@ struct ubi_scan_info *ubi_scan(struct ubi_device *ubi) | |||
948 | if (!ech) | 948 | if (!ech) |
949 | goto out_si; | 949 | goto out_si; |
950 | 950 | ||
951 | vidh = ubi_zalloc_vid_hdr(ubi); | 951 | vidh = ubi_zalloc_vid_hdr(ubi, GFP_KERNEL); |
952 | if (!vidh) | 952 | if (!vidh) |
953 | goto out_ech; | 953 | goto out_ech; |
954 | 954 | ||