Commit faff950c authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

staging: lustre: obdclass: fix checking for obd_init_checks()

The obd_init_checks() function can either return -EOVERFLOW or -EINVAL
but we accidentally ignore -EINVAL returns.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 092c3def
...@@ -448,7 +448,7 @@ static int __init obdclass_init(void) ...@@ -448,7 +448,7 @@ static int __init obdclass_init(void)
obd_zombie_impexp_init(); obd_zombie_impexp_init();
err = obd_init_checks(); err = obd_init_checks();
if (err == -EOVERFLOW) if (err)
return err; return err;
class_init_uuidlist(); class_init_uuidlist();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment