aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@steeleye.com>2006-10-16 11:57:05 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-07-18 12:14:25 -0400
commit528fd55200ec135548e71aee43650bca92a041aa (patch)
tree1f3fc45ebda994bfae01101a2885786784645530 /drivers/scsi
parent27e92471b5d8b3e70646dfaf9369d96773972efd (diff)
[SCSI] libsas: better error handling in sas_ex_discover_end_dev()
This replaces a few BUG_ON() statements with the correct failure error handling. There are still many more to do. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-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