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)
commitfaff950c80dde6738deb213eb8810c14266e5a42
tree0934672ed5e0a1d6c0f00b61892202a5b82a7353
parent092c3def24bb68a00ff58c76ed67b9ff448387ce
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>
drivers/staging/lustre/lustre/obdclass/class_obd.c