diff options
author | Chris Leech <christopher.leech@intel.com> | 2009-08-25 16:59:14 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-09-10 13:07:28 -0400 |
commit | 5892c32f8a2d5a37d4c2ff1df62f6e8a2664abdb (patch) | |
tree | 5eeecbafec68e1d9ec2958f888c12736b6a438c8 /drivers/scsi/fcoe | |
parent | a4b7cfaee487caef913be978dce60896fe741268 (diff) |
[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>
Diffstat (limited to 'drivers/scsi/fcoe')
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) | |||
1900 | /* Setup link change notification */ | 1900 | /* Setup link change notification */ |
1901 | fcoe_dev_setup(); | 1901 | fcoe_dev_setup(); |
1902 | 1902 | ||
1903 | fcoe_if_init(); | 1903 | rc = fcoe_if_init(); |
1904 | if (rc) | ||
1905 | goto out_free; | ||
1904 | 1906 | ||
1905 | return 0; | 1907 | return 0; |
1906 | 1908 | ||