Skip to contentSkip to conversation

rbd: fix type of snap_id in rbd_dev_v2_snap_info()

PATCH In review Alex Elder 2 participants 2 messages Jan 12, 2013 – Jan 17, 2013

Subsystems (2)
lore
Share & tools
lore

Alex Elder

author
#0 lore raw

PATCH 1/1 rbd: fix type of snap_id in rbd_dev_v2_snap_info()

The type of the snap_id local variable is defined with the wrong byte order. Fix that.

---
 drivers/block/rbd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/rbd.c +1 -1
index 02002b1..47443eb 100644
@@ -2800,7 +2800,7 @@ out:
 static char *rbd_dev_v2_snap_info(struct rbd_device *rbd_dev, u32 which,
 		u64 *snap_size, u64 *snap_features)
 {
-	__le64 snap_id;
+	u64 snap_id;
 	u8 order;
 	int ret;
 
Signature · 1 line
1.7.9.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Alex Elder

The type of the snap_id local variable is defined with the wrong byte order. Fix that.

---

Oops, I missed that too.

Quoted 16 lines
  drivers/block/rbd.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/rbd.c +1 -1
index 02002b1..47443eb 100644
@@ -2800,7 +2800,7 @@ out:
  static char *rbd_dev_v2_snap_info(struct rbd_device *rbd_dev, u32 which,
  		u64 *snap_size, u64 *snap_features)
  {
-	__le64 snap_id;
+	u64 snap_id;
  	u8 order;
  	int ret;