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

update

File:
1 edited

Legend:

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

    r29205 r31885  
    732732        struct se_cmd *se_cmd = NULL;
    733733        int rc;
     734        bool op_scsi = false;
    734735        /*
    735736         * Determine if a struct se_cmd is associated with
     
    738739        switch (cmd->iscsi_opcode) {
    739740        case ISCSI_OP_SCSI_CMD:
    740                 se_cmd = &cmd->se_cmd;
    741                 __iscsit_free_cmd(cmd, true, shutdown);
     741                op_scsi = true;
    742742                /*
    743743                 * Fallthrough
    744744                 */
    745745        case ISCSI_OP_SCSI_TMFUNC:
    746                 rc = transport_generic_free_cmd(&cmd->se_cmd, shutdown);
    747                 if (!rc && shutdown && se_cmd && se_cmd->se_sess) {
    748                         __iscsit_free_cmd(cmd, true, shutdown);
     746                se_cmd = &cmd->se_cmd;
     747                __iscsit_free_cmd(cmd, op_scsi, shutdown);
     748                rc = transport_generic_free_cmd(se_cmd, shutdown);
     749                if (!rc && shutdown && se_cmd->se_sess) {
     750                        __iscsit_free_cmd(cmd, op_scsi, shutdown);
    749751                        target_put_sess_cmd(se_cmd);
    750752                }
Note: See TracChangeset for help on using the changeset viewer.