[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] scsi: initialise info object with appropriate s
From: |
P J P |
Subject: |
Re: [Qemu-devel] [PATCH] scsi: initialise info object with appropriate size |
Date: |
Mon, 21 Dec 2015 22:03:22 +0530 (IST) |
+-- 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