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)
commit9ebafb530be42dea90cb698857ac518058346b7b
treecdc5c88631c7b7d155516494fa323ab51d75432c
parentae127bf301d784e533b353571634e38c6ff6eb59
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