mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
092c3def24
commit
faff950c80
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue