staging: lustre: lustre: lov: lov_obd.c: Fix for possible null pointer dereference
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Mon, 19 May 2014 21:40:35 +0000 (23:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 12:05:35 +0000 (21:05 +0900)
commit3456a40e8f5ef46aaba1fcd0f9dfcffa4cdf0c8b
tree5488e4ceac626339f246e078aa7cb7d51840e90a
parent597ae4685a5654fbb542227cd08283071276d05a
staging: lustre: lustre: lov: lov_obd.c: Fix for possible null pointer dereference

There is otherwise a risk of a possible null pointer dereference.

Was largely found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lov/lov_obd.c