Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331627
b: refs/heads/master
c: 0f1d3f9
h: refs/heads/master
i:
  331625: e22299c
  331623: fc94344
v: v3
  • Loading branch information
Alex Elder committed Oct 1, 2012
1 parent d8f4161 commit f2add33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 3593815022998ab75379f64735ff67b3ea388cbe
refs/heads/master: 0f1d3f938527f319d830ef3082c218c77cfd159f
3 changes: 2 additions & 1 deletion trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ struct rbd_image_header {
__u8 crypt_type;
__u8 comp_type;
struct ceph_snap_context *snapc;
size_t snap_names_len;
u64 snap_names_len;
u32 total_snaps;

char *snap_names;
Expand Down Expand Up @@ -510,6 +510,7 @@ static int rbd_header_from_disk(struct rbd_image_header *header,

if (snap_count) {
header->snap_names_len = le64_to_cpu(ondisk->snap_names_len);
BUG_ON(header->snap_names_len > (u64) SIZE_MAX);
header->snap_names = kmalloc(header->snap_names_len,
GFP_KERNEL);
if (!header->snap_names)
Expand Down

0 comments on commit f2add33

Please sign in to comment.