From: Chris Leech Date: Tue, 25 Aug 2009 20:59:14 +0000 (-0700) Subject: [SCSI] fcoe: fix missing error check in call to fcoe_if_init X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5892c32f8a2d5a37d4c2ff1df62f6e8a2664abdb;p=linux-beck.git [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 Signed-off-by: Robert Love Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index a39d370bccf8..d205ac08d07c 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c @@ -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;