]> 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)
commitc95b8ef392e905eb19b810fe00e5332a9462d699
tree0934672ed5e0a1d6c0f00b61892202a5b82a7353
parent2df6302d8941fe68ce8072ec56edd3c0922c911f
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