All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Re: Bug#573439: qemu-kvm: fail to set hdd serial number
Date: Thu, 22 Apr 2010 13:40:02 +0400	[thread overview]
Message-ID: <4BD01972.9030006@msgid.tls.msk.ru> (raw)
In-Reply-To: <4B990D78.6050708@msgid.tls.msk.ru>

11.03.2010 18:34, Michael Tokarev wrote:
[]
>> On version 0.12.3, -drive serial=XXX option does not work.
>> Below patch fixes it. 'serial' is pointer, not array.
>>
>>
>> --- qemu-kvm-0.12.3+dfsg/vl.c	2010-02-26 11:34:00.000000000 +0900
>> +++ qemu-kvm-0.12.3+dfsg.old/vl.c	2010-03-11 02:26:00.134217787 +0900
>> @@ -2397,7 +2397,7 @@
>>       dinfo->on_write_error = on_write_error;
>>       dinfo->opts = opts;
>>       if (serial)
>> -        strncpy(dinfo->serial, serial, sizeof(serial));
>> +        strncpy(dinfo->serial, serial, sizeof(dinfo->serial));
>>       QTAILQ_INSERT_TAIL(&drives, dinfo, next);
>>       if (is_extboot) {
>>           extboot_drive = dinfo;

Folks, can we please add this trivial one-liner to -stable or something?
It has been one and a half months since it has been fixed in debian...

Thanks!

/mjt

  reply	other threads:[~2010-04-22  9:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20100311.234200.145758949990685830.kou1.ono@gmail.com>
2010-03-11 15:34 ` [Qemu-devel] Re: Bug#573439: qemu-kvm: fail to set hdd serial number Michael Tokarev
2010-04-22  9:40   ` Michael Tokarev [this message]
2010-04-24 13:05     ` Andreas Färber
2010-04-25 20:35       ` Michael Tokarev
2010-04-26 11:48         ` Jamie Lokier

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=4BD01972.9030006@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=qemu-devel@nongnu.org \
    /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.