iscsi-target: Fix reservation conflict -EBUSY response handling bug
[pandora-kernel.git] / drivers / target / iscsi / iscsi_target.c
index 0c1d5c7..03d3528 100644 (file)
@@ -1029,7 +1029,7 @@ done:
                return iscsit_add_reject_from_cmd(
                                ISCSI_REASON_BOOKMARK_NO_RESOURCES,
                                1, 1, buf, cmd);
-       } else if (transport_ret == -EINVAL) {
+       } else if (transport_ret < 0) {
                /*
                 * Unsupported SAM Opcode.  CHECK_CONDITION will be sent
                 * in iscsit_execute_cmd() during the CmdSN OOO Execution