mirror of
https://github.com/torvalds/linux.git
synced 2024-12-14 07:02:23 +00:00
[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>
This commit is contained in:
parent
27e92471b5
commit
528fd55200
@ -670,8 +670,8 @@ static struct domain_device *sas_ex_discover_end_dev(
|
||||
sizeof(struct dev_to_host_fis));
|
||||
|
||||
rphy = sas_end_device_alloc(phy->port);
|
||||
/* FIXME: error handling */
|
||||
BUG_ON(!rphy);
|
||||
if (unlikely(!rphy))
|
||||
goto out_free;
|
||||
|
||||
sas_init_dev(child);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user