diff options
author | Roland Dreier <roland@purestorage.com> | 2011-11-23 01:51:33 +0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-12-06 10:00:55 +0400 |
commit | 9b5cd7f37e1e018432111333e2a67f78ba41edfe (patch) | |
tree | c1d620a534f0fcb36c354bbe35daf53f3d30a743 /scripts/selinux | |
parent | 410f670202f0f13cdac8459b9c3effeeead135d1 (diff) | |
download | linux-9b5cd7f37e1e018432111333e2a67f78ba41edfe.tar.xz |
target: Handle 0 correctly in transport_get_sectors_6()
SBC-3 says:
A TRANSFER LENGTH field set to zero specifies that 256 logical
blocks shall be written. Any other value specifies the number
of logical blocks that shall be written.
The old code was always just returning the value in the TRANSFER LENGTH
byte. Fix this to return 256 if the byte is 0.
Signed-off-by: Roland Dreier <roland@purestorage.com>
Cc: stable@kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'scripts/selinux')
0 files changed, 0 insertions, 0 deletions