[SCSI] fcoe: fix missing error check in call to fcoe_if_init
authorChris Leech <christopher.leech@intel.com>
Tue, 25 Aug 2009 20:59:14 +0000 (13:59 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 10 Sep 2009 17:07:28 +0000 (12:07 -0500)
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>
drivers/scsi/fcoe/fcoe.c

index a39d370bccf85034b082c999abdea19bb998ecb7..d205ac08d07ce6ad786f4395855da2cc7abb2182 100644 (file)
@@ -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;