Commit 5892c32f authored by Chris Leech's avatar Chris Leech Committed by James Bottomley
Browse files

[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: default avatarChris Leech <christopher.leech@intel.com>
Signed-off-by: default avatarRobert Love <robert.w.love@intel.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent a4b7cfae
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;