diff options
author | Roland Dreier <roland@purestorage.com> | 2015-08-14 06:59:19 +0200 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-08-19 06:51:54 +0200 |
commit | 0f69a38737538c8a265f75d26996818f98c899e4 (patch) | |
tree | db21d5dc214d0dd9793dfee813e0e358d16013f5 /drivers/phy/phy-qcom-ufs-qmp-20nm.c | |
parent | target: REPORT LUNS should return LUN 0 even for dynamic ACLs (diff) | |
download | linux-0f69a38737538c8a265f75d26996818f98c899e4.tar.xz linux-0f69a38737538c8a265f75d26996818f98c899e4.zip |
target: Fix handling of small allocation lengths in REPORT LUNS
REPORT LUNS should not fail just because the allocation length is less
than 16. The relevant section of SPC-4 is:
4.2.5.6 Allocation length
The ALLOCATION LENGTH field specifies the maximum number of bytes or
blocks that an application client has allocated in the Data-In
Buffer. The ALLOCATION LENGTH field specifies bytes unless a
different requirement is stated in the command definition.
An allocation length of zero specifies that no data shall be
transferred. This condition shall not be considered an error.
So we should just truncate our response rather than return an error.
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Spencer Baugh <sbaugh@catern.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/phy/phy-qcom-ufs-qmp-20nm.c')
0 files changed, 0 insertions, 0 deletions