All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Brunner <chb@muc.de>
To: ceph-devel@vger.kernel.org
Cc: kwolf@redhat.com
Subject: [PATCH] qemu/rbd bugfix for create_tmap_op
Date: Thu, 3 Jun 2010 23:08:31 +0200	[thread overview]
Message-ID: <20100603210831.GA17094@chb-desktop> (raw)

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


                 reply	other threads:[~2010-06-03 21:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100603210831.GA17094@chb-desktop \
    --to=chb@muc.de \
    --cc=ceph-devel@vger.kernel.org \
    --cc=kwolf@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.