[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH] scsi: Don't deference in_buf if NU
From: |
Fam Zheng |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH] scsi: Don't deference in_buf if NULL |
Date: |
Fri, 5 Jan 2018 09:49:27 +0800 |
User-agent: |
Mutt/1.9.1 (2017-09-22) |
On Thu, 01/04 11:41, Eric Blake wrote:
> On 01/03/2018 08:42 PM, Fam Zheng wrote:
> > scsi_disk_emulate_command passes in_buf=NULL and in_len=0 in the
> > REQUEST_SENSE branch. Inline the fixed_in evaluation and put it after
> > the in_len test.
> >
> > Signed-off-by: Fam Zheng <address@hidden>
> > ---
> > scsi/utils.c | 4 +---
> > 1 file changed, 1 insertion(+), 3 deletions(-)
>
> Does this patch duplicate
> https://lists.gnu.org/archive/html/qemu-devel/2017-12/msg04964.html ?
Yes. Thanks for pointing out this.
Fam