Message ID | 20100603210831.GA17094@chb-desktop (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
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;