]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: lustre: obdclass: fix checking for obd_init_checks()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 26 Aug 2017 06:04:46 +0000 (09:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 08:24:07 +0000 (10:24 +0200)
The obd_init_checks() function can either return -EOVERFLOW or -EINVAL
but we accidentally ignore -EINVAL returns.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/class_obd.c

index 5453589232716c7580aa60c01d3231ccb31b9c54..2df218b010e1ce026675e8eaa30cd4d10622ae93 100644 (file)
@@ -448,7 +448,7 @@ static int __init obdclass_init(void)
        obd_zombie_impexp_init();
 
        err = obd_init_checks();
-       if (err == -EOVERFLOW)
+       if (err)
                return err;
 
        class_init_uuidlist();