aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firewire')
-rw-r--r--drivers/firewire/fw-sbp2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/firewire/fw-sbp2.c b/drivers/firewire/fw-sbp2.c
index ea4811c45512..60ebcb5fe21a 100644
--- a/drivers/firewire/fw-sbp2.c
+++ b/drivers/firewire/fw-sbp2.c
@@ -1473,6 +1473,10 @@ static int sbp2_scsi_slave_alloc(struct scsi_device *sdev)
1473{ 1473{
1474 struct sbp2_logical_unit *lu = sdev->hostdata; 1474 struct sbp2_logical_unit *lu = sdev->hostdata;
1475 1475
1476 /* (Re-)Adding logical units via the SCSI stack is not supported. */
1477 if (!lu)
1478 return -ENOSYS;
1479
1476 sdev->allow_restart = 1; 1480 sdev->allow_restart = 1;
1477 1481
1478 /* 1482 /*