Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dan Carpenter and committed by
Greg Kroah-Hartman
faff950c 092c3def

+1 -1
+1 -1
drivers/staging/lustre/lustre/obdclass/class_obd.c
··· 448 448 obd_zombie_impexp_init(); 449 449 450 450 err = obd_init_checks(); 451 - if (err == -EOVERFLOW) 451 + if (err) 452 452 return err; 453 453 454 454 class_init_uuidlist();