Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=693b9021767750cbac2c92e918d25ddadbab7c61
Commit:     693b9021767750cbac2c92e918d25ddadbab7c61
Parent:     9472316b6eab3500ded544f6e86700c33541ef4e
Author:     Kristian Høgsberg <[EMAIL PROTECTED]>
AuthorDate: Wed Mar 14 17:34:56 2007 -0400
Committer:  Stefan Richter <[EMAIL PROTECTED]>
CommitDate: Thu Mar 15 18:21:36 2007 +0100

    firewire: Zero out sd->scsi_host if we fail to register with the SCSI stack.
    
    Signed-off-by: Kristian Høgsberg <[EMAIL PROTECTED]>
    Signed-off-by: Stefan Richter <[EMAIL PROTECTED]>
---
 drivers/firewire/fw-sbp2.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/firewire/fw-sbp2.c b/drivers/firewire/fw-sbp2.c
index 2e5479b..0c87724 100644
--- a/drivers/firewire/fw-sbp2.c
+++ b/drivers/firewire/fw-sbp2.c
@@ -1099,6 +1099,7 @@ static int add_scsi_devices(struct fw_unit *unit)
        if (retval < 0) {
                fw_error("failed to add scsi host\n");
                scsi_host_put(sd->scsi_host);
+               sd->scsi_host = NULL;
                return retval;
        }
 
@@ -1109,6 +1110,7 @@ static int add_scsi_devices(struct fw_unit *unit)
                fw_error("failed to add scsi device\n");
                scsi_remove_host(sd->scsi_host);
                scsi_host_put(sd->scsi_host);
+               sd->scsi_host = NULL;
                return retval;
        }
 
-
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  http://vger.kernel.org/majordomo-info.html

Reply via email to