diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-10-07 15:20:07 -0700 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-10-09 01:54:43 -0700 |
commit | 934a138e970e5af73d6f79469a1eb363572abbaa (patch) | |
tree | be6beb6fd04652684aa4e1c8ce3a6d7cf16ec1c7 /include/linux/iio/adc | |
parent | 9e20ae339721d614a1b0768c48bd73b456ff7905 (diff) |
target: Make target_do_xcopy failures return INVALID_PARAMETER_LIST
This patch changes target_do_xcopy() to properly return
TCM_INVALID_PARAMETER_LIST instead of TCM_INVALID_CDB_FIELD
for failures related to the EXTENDED_COPY parameter list parsing.
Also, move struct xcopy_op allocation ahead of kmapping to
handle the special TCM_OUT_OF_RESOURCES case.
Reported-by: Thomas Glanzmann <thomas@glanzmann.de>
Reported-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/linux/iio/adc')
0 files changed, 0 insertions, 0 deletions