]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: lustre: lproc_osc: Add check on a variable
authorShivani Bhardwaj <shivanib134@gmail.com>
Sun, 18 Oct 2015 13:20:30 +0000 (18:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 01:41:09 +0000 (18:41 -0700)
commit7a526bbc9fc2fc5fff818f7963ee08529225983c
treecdc5c88631c7b7d155516494fa323ab51d75432c
parent07e3a776aed3f968132673558de1aed4a4111d67
Staging: lustre: lproc_osc: Add check on a variable

Variable rc is not tested for negative values and hence a check should
be included. Also, a check for variable val should be introduced.

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/osc/lproc_osc.c