Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef774c16 authored by Stefan Richter's avatar Stefan Richter
Browse files

ieee1394: sbp2: fix rescan-scsi-bus



rescan-scsi-bus used to add SBP-2 targets which weren't there.

Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent 33f1c6c3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;