Skip to content

Commit

Permalink
[SCSI] fcoe: fix missing error check in call to fcoe_if_init
Browse files Browse the repository at this point in the history
fcoe_if_init() can fail, but it's return value wasn't checked

Signed-off-by: Chris Leech <christopher.leech@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Chris Leech authored and James Bottomley committed Sep 10, 2009
1 parent a4b7cfa commit 5892c32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/scsi/fcoe/fcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5892c32

Please sign in to comment.