diff options
author | Roland Dreier <roland@purestorage.com> | 2013-02-08 15:18:40 -0800 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-02-13 12:16:11 -0800 |
commit | 71f41fe1fafae2e407ef19d8174207f7ff80b387 (patch) | |
tree | e780f1e3fcfec59f5ff3f876d8850843d52b442c /drivers/target/target_core_device.c | |
parent | bb992e72f9b751fceb04afeb7736b6a3e50effcf (diff) |
target: Fix parameter list length checking in MODE SELECT
An empty parameter list (length == 0) is not an error, so succeed MODE
SELECT in this case. If the parameter list length is too small,
return the correct sense code of PARAMETER LIST LENGTH ERROR.
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_device.c')
0 files changed, 0 insertions, 0 deletions