Ignore:
Timestamp:
Apr 21, 2017, 4:28:29 AM (3 months ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/drivers/target/iscsi/iscsi_target_util.c

    r31574 r31885  
    736736        struct se_cmd *se_cmd = NULL;
    737737        int rc;
     738        bool op_scsi = false;
    738739        /*
    739740         * Determine if a struct se_cmd is associated with
     
    742743        switch (cmd->iscsi_opcode) {
    743744        case ISCSI_OP_SCSI_CMD:
    744                 se_cmd = &cmd->se_cmd;
    745                 __iscsit_free_cmd(cmd, true, shutdown);
     745                op_scsi = true;
    746746                /*
    747747                 * Fallthrough
    748748                 */
    749749        case ISCSI_OP_SCSI_TMFUNC:
    750                 rc = transport_generic_free_cmd(&cmd->se_cmd, shutdown);
    751                 if (!rc && shutdown && se_cmd && se_cmd->se_sess) {
    752                         __iscsit_free_cmd(cmd, true, shutdown);
     750                se_cmd = &cmd->se_cmd;
     751                __iscsit_free_cmd(cmd, op_scsi, shutdown);
     752                rc = transport_generic_free_cmd(se_cmd, shutdown);
     753                if (!rc && shutdown && se_cmd->se_sess) {
     754                        __iscsit_free_cmd(cmd, op_scsi, shutdown);
    753755                        target_put_sess_cmd(se_cmd);
    754756                }
Note: See TracChangeset for help on using the changeset viewer.