qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: P J P <ppandit@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Qinghao Tang <luodalongde@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] scsi: initialise info object with appropriate size
Date: Mon, 21 Dec 2015 22:03:22 +0530 (IST)	[thread overview]
Message-ID: <alpine.LFD.2.20.1512212158450.26574@wniryva> (raw)
In-Reply-To: <56781AD2.7020402@redhat.com>

+-- On Mon, 21 Dec 2015, Paolo Bonzini wrote --+
| > diff --git a/hw/scsi/megasas.c b/hw/scsi/megasas.c
| > index d7dc667..576f56c 100644
| > --- a/hw/scsi/megasas.c
| > +++ b/hw/scsi/megasas.c
| > @@ -718,7 +718,7 @@ static int megasas_ctrl_get_info(MegasasState *s,
| > MegasasCmd *cmd)
| >      BusChild *kid;
| >      int num_pd_disks = 0;
| > 
| > -    memset(&info, 0x0, cmd->iov_size);
| > +    memset(&info, 0x0, dcmd_size);
| >      if (cmd->iov_size < dcmd_size) {
| >          trace_megasas_dcmd_invalid_xfer_len(cmd->index, cmd->iov_size,
| >                                              dcmd_size);
| 
| Yes, it is.  I've queued this patch to my for-2.6 branch.

  Okay, cool! Should I separately send it for 2.5 at qemu-stable?

Thank you.
--
Prasad J Pandit / Red Hat Product Security Team
47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F

  reply	other threads:[~2015-12-21 16:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-21  9:43 [Qemu-devel] [PATCH] scsi: initialise info object with appropriate size P J P
2015-12-21 15:29 ` Paolo Bonzini
2015-12-21 16:33   ` P J P [this message]
2015-12-21 16:39     ` Paolo Bonzini
2015-12-21 17:56       ` P J P

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=alpine.LFD.2.20.1512212158450.26574@wniryva \
    --to=ppandit@redhat.com \
    --cc=luodalongde@gmail.com \
    --cc=pbonzini@redhat.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).