diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2008-02-17 08:57:10 -0500 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2008-02-19 13:57:24 -0500 |
commit | ef774c16a744f130f27c654bf9c4806e767fc773 (patch) | |
tree | f9a4b9897d46cfeb0d21901ca9f7e5b9e093382b | |
parent | 33f1c6c3529f5f279e2e98e5cca0c5bac152153b (diff) |
ieee1394: sbp2: fix rescan-scsi-bus
rescan-scsi-bus used to add SBP-2 targets which weren't there.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
-rw-r--r-- | drivers/ieee1394/sbp2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ieee1394/sbp2.c b/drivers/ieee1394/sbp2.c index accb2ad8b561..9e2b1964d71a 100644 --- a/drivers/ieee1394/sbp2.c +++ b/drivers/ieee1394/sbp2.c | |||
@@ -1974,6 +1974,9 @@ static int sbp2scsi_slave_alloc(struct scsi_device *sdev) | |||
1974 | { | 1974 | { |
1975 | struct sbp2_lu *lu = (struct sbp2_lu *)sdev->host->hostdata[0]; | 1975 | struct sbp2_lu *lu = (struct sbp2_lu *)sdev->host->hostdata[0]; |
1976 | 1976 | ||
1977 | if (sdev->lun != 0 || sdev->id != lu->ud->id || sdev->channel != 0) | ||
1978 | return -ENODEV; | ||
1979 | |||
1977 | lu->sdev = sdev; | 1980 | lu->sdev = sdev; |
1978 | sdev->allow_restart = 1; | 1981 | sdev->allow_restart = 1; |
1979 | 1982 | ||