aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libsas/sas_expander.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/libsas/sas_expander.c')
-rw-r--r--drivers/scsi/libsas/sas_expander.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/libsas/sas_expander.c b/drivers/scsi/libsas/sas_expander.c
index 07464873ab89..d05fc23b4d5b 100644
--- a/drivers/scsi/libsas/sas_expander.c
+++ b/drivers/scsi/libsas/sas_expander.c
@@ -670,8 +670,8 @@ static struct domain_device *sas_ex_discover_end_dev(
670 sizeof(struct dev_to_host_fis)); 670 sizeof(struct dev_to_host_fis));
671 671
672 rphy = sas_end_device_alloc(phy->port); 672 rphy = sas_end_device_alloc(phy->port);
673 /* FIXME: error handling */ 673 if (unlikely(!rphy))
674 BUG_ON(!rphy); 674 goto out_free;
675 675
676 sas_init_dev(child); 676 sas_init_dev(child);
677 677