提交 5892c32f 编写于 作者: C Chris Leech 提交者: James Bottomley

[SCSI] fcoe: fix missing error check in call to fcoe_if_init

fcoe_if_init() can fail, but it's return value wasn't checked
Signed-off-by: NChris Leech <christopher.leech@intel.com>
Signed-off-by: NRobert Love <robert.w.love@intel.com>
Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
上级 a4b7cfae
......@@ -1900,7 +1900,9 @@ static int __init fcoe_init(void)
/* Setup link change notification */
fcoe_dev_setup();
fcoe_if_init();
rc = fcoe_if_init();
if (rc)
goto out_free;
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册