staging: lustre: fix potential NULL pointer dereference
authorMichal Nazarewicz <mina86@mina86.com>
Fri, 29 Nov 2013 17:10:59 +0000 (18:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 17:03:20 +0000 (09:03 -0800)
commit358bd68cbdf23797f7360948094b4920caf65877
tree926611dd44a3616922de5bcf48fe75f24987b8c2
parent14f4f4aa90473ece675df56062a9f14efbf00859
staging: lustre: fix potential NULL pointer dereference

The rest of the code seem to imply that rmf_dumper may indeed be
NULL.  Change the code so that dumping is not even considered if
rmf_dumper callback is not set.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ptlrpc/layout.c