commit | d0f69b5a66c30350ed6e41eef72414ce8650face | [log] [tgz] |
---|---|---|
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | Tue Sep 08 21:53:01 2015 +0530 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Sep 12 18:24:51 2015 -0700 |
tree | a2951d3181cd64ff5118839f8b212daa4b901739 | |
parent | 2ced12a7f8bf4994d43209074587519d044d21a2 [diff] |
staging: lustre: lov: fix dereference of ERR_PTR If lov_sub_get() fails then it returns the error code in ERR_PTR, but here we were dereferencing sub without checking if lov_sub_get() has actually succeeded or not. And on error we can directly return the error code from lov_io_fault_start() as it return 0 on success and the error code on error. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>