]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2d3c4a5c638e4f5cbbf9c2bfb12e43680083398
tree0934672ed5e0a1d6c0f00b61892202a5b82a7353
parentac39a3aaf3acbbd6e1326c9536a4d4e69df0aadc
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