projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5988c4
)
rbd: Fix ceph_snap_context size calculation
author
Yan, Zheng
<zheng.z.yan@intel.com>
Wed, 6 Jun 2012 14:15:33 +0000
(09:15 -0500)
committer
Alex Elder
<elder@dreamhost.com>
Wed, 6 Jun 2012 14:23:53 +0000
(09:23 -0500)
ceph_snap_context->snaps is an u64 array
Signed-off-by: Zheng Yan <zheng.z.yan@intel.com>
Reviewed-by: Alex Elder <elder@inktank.com>
drivers/block/rbd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/rbd.c
b/drivers/block/rbd.c
index 65665c9c42c62ba5805324df96292e560f16b04a..8b9c1734d80706faa8bc2a6c175d91334d2e3bd1 100644
(file)
--- a/
drivers/block/rbd.c
+++ b/
drivers/block/rbd.c
@@
-499,7
+499,7
@@
static int rbd_header_from_disk(struct rbd_image_header *header,
/ sizeof (*ondisk))
return -EINVAL;
header->snapc = kmalloc(sizeof(struct ceph_snap_context) +
- snap_count * sizeof
(*ondisk
),
+ snap_count * sizeof
(u64
),
gfp_flags);
if (!header->snapc)
return -ENOMEM;