Skip to content

Commit

Permalink
ieee1394: sbp2: fix rescan-scsi-bus
Browse files Browse the repository at this point in the history
rescan-scsi-bus used to add SBP-2 targets which weren't there.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
  • Loading branch information
Stefan Richter committed Feb 19, 2008
1 parent 33f1c6c commit ef774c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/ieee1394/sbp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ef774c1

Please sign in to comment.