[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PULL 21/25] scsi-disk: fix VERIFY for scsi-block
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PULL 21/25] scsi-disk: fix VERIFY for scsi-block |
Date: |
Tue, 10 Jan 2017 10:36:05 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
On 09/01/2017 20:42, Peter Maydell wrote:
>> + case VERIFY_10:
>> + case VERIFY_12:
>> + case VERIFY_16:
>> + /* We get here only for BYTCHK == 0x01 and only for scsi-block.
>> + * As far as DMA is concerned, we can treat it the same as a write;
>> + * scsi_block_do_sgio will send VERIFY commands.
>> + */
>> if (r->req.cmd.buf[1] & 0xe0) {
>> goto illegal_request;
>> }
> Coverity now complains about the fallthrough into the case statements
> added here. I assume from the patch that the fallthrough is deliberate,
> in which case a /* fall through */ comment would assist future
> readers...
Indeed---I thought I had waived that already in the scan dashboard.
Paolo