Re: [PATCH 1/2] Validate the DataOut length in WRITE_SAME_1*

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun,  2 Oct 2016 09:04:01 -0700
Ronnie Sahlberg <ronniesahlberg@xxxxxxxxx> wrote:

> WRITE_SAME_1* takes either no data at all or exactly one block of data
> as DataOut. Check for this and fail the cdb if the DataOut size differs.
> 
> (Some initiators use DataOut size == 0 (primarily together with unmap)
> to mean "use a block all filled with 0" so that is why I think we
> should be liberal and allow size==0 too here.)
> 
> Signed-off-by: Ronnie Sahlberg <ronniesahlberg@xxxxxxxxx>
> ---
>  usr/sbc.c | 8 ++++++++
>  1 file changed, 8 insertions(+)

Applied both, thanks!
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux