projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33f1c6c
)
ieee1394: sbp2: fix rescan-scsi-bus
author
Stefan Richter
<stefanr@s5r6.in-berlin.de>
Sun, 17 Feb 2008 13:57:10 +0000
(14:57 +0100)
committer
Stefan Richter
<stefanr@s5r6.in-berlin.de>
Tue, 19 Feb 2008 18:57:24 +0000
(19:57 +0100)
rescan-scsi-bus used to add SBP-2 targets which weren't there.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/ieee1394/sbp2.c
patch
|
blob
|
history
diff --git
a/drivers/ieee1394/sbp2.c
b/drivers/ieee1394/sbp2.c
index
accb2ad
..
9e2b196
100644
(file)
--- a/
drivers/ieee1394/sbp2.c
+++ b/
drivers/ieee1394/sbp2.c
@@
-1974,6
+1974,9
@@
static int sbp2scsi_slave_alloc(struct scsi_device *sdev)
{
struct sbp2_lu *lu = (struct sbp2_lu *)sdev->host->hostdata[0];
+ if (sdev->lun != 0 || sdev->id != lu->ud->id || sdev->channel != 0)
+ return -ENODEV;
+
lu->sdev = sdev;
sdev->allow_restart = 1;