projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9472316
)
firewire: Zero out sd->scsi_host if we fail to register with the SCSI stack.
author
Kristian Høgsberg
<krh@redhat.com>
Wed, 14 Mar 2007 21:34:56 +0000
(17:34 -0400)
committer
Stefan Richter
<stefanr@s5r6.in-berlin.de>
Thu, 15 Mar 2007 17:21:36 +0000
(18:21 +0100)
Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-sbp2.c
patch
|
blob
|
history
diff --git
a/drivers/firewire/fw-sbp2.c
b/drivers/firewire/fw-sbp2.c
index 2e5479b972feae3f3bc293965be2f63a1c86ad9e..0c87724cec3f0a025d41224f7697ccd895fda325 100644
(file)
--- 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;
}