提交 528fd552 编写于 作者: J James Bottomley 提交者: James Bottomley

[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: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 27e92471
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册