mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-05-21 12:07:46 +00:00
Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband
* 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband: IB/srp: Don't send task management commands after target removal
This commit is contained in:
@@ -1155,6 +1155,12 @@ static int srp_send_tsk_mgmt(struct scsi_cmnd *scmnd, u8 func)
|
|||||||
|
|
||||||
spin_lock_irq(target->scsi_host->host_lock);
|
spin_lock_irq(target->scsi_host->host_lock);
|
||||||
|
|
||||||
|
if (target->state == SRP_TARGET_DEAD ||
|
||||||
|
target->state == SRP_TARGET_REMOVED) {
|
||||||
|
scmnd->result = DID_BAD_TARGET << 16;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
if (scmnd->host_scribble == (void *) -1L)
|
if (scmnd->host_scribble == (void *) -1L)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user