* [git pull] IB SRP fix for 2.6.16-rc5
@ 2006-03-04 1:53 Roland Dreier
0 siblings, 0 replies; only message in thread
From: Roland Dreier @ 2006-03-04 1:53 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel, openib-general
Linus, please pull from
master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband.git for-linus
This tree is also available from kernel.org mirrors at:
git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband.git for-linus
The pull will get the following change, which fixes a potential crash
when a connection to an SRP storage target is lost:
Roland Dreier:
IB/srp: Don't send task management commands after target removal
drivers/infiniband/ulp/srp/ib_srp.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
--- a/drivers/infiniband/ulp/srp/ib_srp.c
+++ b/drivers/infiniband/ulp/srp/ib_srp.c
@@ -1155,6 +1155,12 @@ static int srp_send_tsk_mgmt(struct scsi
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)
goto out;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-03-04 1:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-04 1:53 [git pull] IB SRP fix for 2.6.16-rc5 Roland Dreier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox