Commit:     911833440b498e3e4fe2f12c1ae2bd44400c7004
Parent:     439f61b9f9ebbf84fb7e6b3539fc3794e046bbb9
Author:     Dave Dillow <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 3 21:34:49 2008 -0500
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Fri Jan 4 14:15:51 2008 -0600

    [SCSI] SRP transport: only remove our own entries
    The SCSI SRP transport class currently iterates over all children
    devices of the host that is being removed in srp_remove_host(). However,
    not all of those children were created by the SRP transport, and
    removing them will cause corruption and an oops when their creator tries
    to remove them.
    Signed-off-by: David Dillow <[EMAIL PROTECTED]>
    Acked-by: FUJITA Tomonori <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
 drivers/scsi/scsi_transport_srp.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/scsi_transport_srp.c 
index 44a340b..65c584d 100644
--- a/drivers/scsi/scsi_transport_srp.c
+++ b/drivers/scsi/scsi_transport_srp.c
@@ -265,7 +265,8 @@ EXPORT_SYMBOL_GPL(srp_rport_del);
 static int do_srp_rport_del(struct device *dev, void *data)
-       srp_rport_del(dev_to_rport(dev));
+       if (scsi_is_srp_rport(dev))
+               srp_rport_del(dev_to_rport(dev));
        return 0;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to