From: Nicholas Bellinger Date: Mon, 7 Oct 2013 22:20:07 +0000 (-0700) Subject: target: Make target_do_xcopy failures return INVALID_PARAMETER_LIST X-Git-Tag: v3.12-rc7~5^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=934a138e970e5af73d6f79469a1eb363572abbaa;p=pandora-kernel.git 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 Reported-by: Douglas Gilbert Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed