diff options
-rw-r--r-- | drivers/target/target_core_transport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index b79c6a2824ee..d44cbc2113e5 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c | |||
@@ -1733,8 +1733,8 @@ void target_submit_tmr(struct se_cmd *se_cmd, struct se_session *se_sess, | |||
1733 | 1733 | ||
1734 | ret = transport_lookup_tmr_lun(se_cmd, unpacked_lun); | 1734 | ret = transport_lookup_tmr_lun(se_cmd, unpacked_lun); |
1735 | if (ret) { | 1735 | if (ret) { |
1736 | transport_send_check_condition_and_sense(se_cmd, | 1736 | se_cmd->se_tmr_req->response = TMR_LUN_DOES_NOT_EXIST; |
1737 | se_cmd->scsi_sense_reason, 0); | 1737 | se_cmd->se_tfo->queue_tm_rsp(se_cmd); |
1738 | transport_generic_free_cmd(se_cmd, 0); | 1738 | transport_generic_free_cmd(se_cmd, 0); |
1739 | return; | 1739 | return; |
1740 | } | 1740 | } |