[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: 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>
This commit is contained in:
Chris Leech 2009-08-25 13:59:14 -07:00 коммит произвёл James Bottomley
Родитель a4b7cfaee4
Коммит 5892c32f8a
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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;