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 8d9efe5 commit c1ce4bdCopy full SHA for c1ce4bd
drivers/target/iscsi/iscsi_target_util.c
@@ -849,6 +849,17 @@ void iscsit_free_cmd(struct iscsi_cmd *cmd)
849
case ISCSI_OP_SCSI_TMFUNC:
850
transport_generic_free_cmd(&cmd->se_cmd, 1);
851
break;
852
+ case ISCSI_OP_REJECT:
853
+ /*
854
+ * Handle special case for REJECT when iscsi_add_reject*() has
855
+ * overwritten the original iscsi_opcode assignment, and the
856
+ * associated cmd->se_cmd needs to be released.
857
+ */
858
+ if (cmd->se_cmd.se_tfo != NULL) {
859
+ transport_generic_free_cmd(&cmd->se_cmd, 1);
860
+ break;
861
+ }
862
+ /* Fall-through */
863
default:
864
iscsit_release_cmd(cmd);
865
0 commit comments