Skip to contentSkip to conversation

qemu/rbd bugfix for create_tmap_op

PATCH New Christian Brunner 1 participant 1 message Jun 3, 2010 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu/rbd bugfix for create_tmap_op

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(-)
block/rbd.c +1 -1
index e4c4deb..74589cb 100644
@@ -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;
 
Signature · 1 line
1.7.0.4