Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309447
b: refs/heads/master
c: f8ad495
h: refs/heads/master
i:
  309445: d30ef4d
  309443: 883e96f
  309439: 2acd2f5
v: v3
  • Loading branch information
Dan Carpenter authored and Alex Elder committed May 14, 2012
1 parent 67d1814 commit 398bcbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 76aa542fb90e3e91edb1146d10ca7cf2cae8e7e9
refs/heads/master: f8ad495a8a0277b88c59bf38319e5e944aaf5a4a
4 changes: 2 additions & 2 deletions trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,11 +506,11 @@ static int rbd_header_from_disk(struct rbd_image_header *header,
header->snap_names_len = le64_to_cpu(ondisk->snap_names_len);
if (snap_count) {
header->snap_names = kmalloc(header->snap_names_len,
GFP_KERNEL);
gfp_flags);
if (!header->snap_names)
goto err_snapc;
header->snap_sizes = kmalloc(snap_count * sizeof(u64),
GFP_KERNEL);
gfp_flags);
if (!header->snap_sizes)
goto err_names;
} else {
Expand Down

0 comments on commit 398bcbe

Please sign in to comment.