diff options
-rw-r--r-- | drivers/block/rbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index a67fa63a966b..ca59d4d9471e 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c | |||
@@ -506,11 +506,11 @@ static int rbd_header_from_disk(struct rbd_image_header *header, | |||
506 | header->snap_names_len = le64_to_cpu(ondisk->snap_names_len); | 506 | header->snap_names_len = le64_to_cpu(ondisk->snap_names_len); |
507 | if (snap_count) { | 507 | if (snap_count) { |
508 | header->snap_names = kmalloc(header->snap_names_len, | 508 | header->snap_names = kmalloc(header->snap_names_len, |
509 | GFP_KERNEL); | 509 | gfp_flags); |
510 | if (!header->snap_names) | 510 | if (!header->snap_names) |
511 | goto err_snapc; | 511 | goto err_snapc; |
512 | header->snap_sizes = kmalloc(snap_count * sizeof(u64), | 512 | header->snap_sizes = kmalloc(snap_count * sizeof(u64), |
513 | GFP_KERNEL); | 513 | gfp_flags); |
514 | if (!header->snap_sizes) | 514 | if (!header->snap_sizes) |
515 | goto err_names; | 515 | goto err_names; |
516 | } else { | 516 | } else { |