projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b84de7
)
rbd: fix type of snap_id in rbd_dev_v2_snap_info()
author
Alex Elder
<elder@inktank.com>
Wed, 9 Jan 2013 20:44:18 +0000
(14:44 -0600)
committer
Alex Elder
<elder@inktank.com>
Thu, 17 Jan 2013 22:35:55 +0000
(16:35 -0600)
The type of the snap_id local variable is defined with the
wrong byte order. Fix that.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c
patch
|
blob
|
history
diff --git
a/drivers/block/rbd.c
b/drivers/block/rbd.c
index
a3a11c3
..
007b726
100644
(file)
--- a/
drivers/block/rbd.c
+++ b/
drivers/block/rbd.c
@@
-2802,7
+2802,7
@@
out:
static char *rbd_dev_v2_snap_info(struct rbd_device *rbd_dev, u32 which,
u64 *snap_size, u64 *snap_features)
{
-
__le
64 snap_id;
+
u
64 snap_id;
u8 order;
int ret;