We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6492a0f commit fa577fcCopy full SHA for fa577fc
drivers/target/iscsi/iscsi_target_util.c
@@ -851,6 +851,17 @@ void iscsit_free_cmd(struct iscsi_cmd *cmd)
851
case ISCSI_OP_SCSI_TMFUNC:
852
transport_generic_free_cmd(&cmd->se_cmd, 1);
853
break;
854
+ case ISCSI_OP_REJECT:
855
+ /*
856
+ * Handle special case for REJECT when iscsi_add_reject*() has
857
+ * overwritten the original iscsi_opcode assignment, and the
858
+ * associated cmd->se_cmd needs to be released.
859
+ */
860
+ if (cmd->se_cmd.se_tfo != NULL) {
861
+ transport_generic_free_cmd(&cmd->se_cmd, 1);
862
+ break;
863
+ }
864
+ /* Fall-through */
865
default:
866
iscsit_release_cmd(cmd);
867
0 commit comments