[PATCH] qemu/rbd bugfix for create_tmap_op

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch I sent in response to kevins comments contains a bug in 
create_tmap_op. (I've deleted to much here). Please include the 
following fix.

Regards,
Christian
---
 block/rbd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/block/rbd.c b/block/rbd.c
index e4c4deb..74589cb 100644
--- a/block/rbd.c
+++ b/block/rbd.c
@@ -124,7 +124,7 @@ static int create_tmap_op(uint8_t op, const char *name, char **tmap_desc)
     uint32_t total_len = 1 + (sizeof(uint32_t) + len) + sizeof(uint32_t);
     char *desc = NULL;
 
-    qemu_malloc(total_len);
+    desc = qemu_malloc(total_len);
 
     *tmap_desc = desc;
 
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux