staging/lustre/ptlrpc: Removes potential null dereference
authorLidza Louina <lidza.louina@oracle.com>
Mon, 16 May 2016 18:51:42 +0000 (14:51 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 05:38:19 +0000 (22:38 -0700)
commitdb3c16cdde24ecd59df0f24f93f1a4ba177f4b82
treec840fd0a47f422945b1f057903b91aac7e048e4a
parent423b09b8f45c8771bca84d41c3254c3904d78a0a
staging/lustre/ptlrpc: Removes potential null dereference

The lustre_msg_buf method could return NULL. Subsequent code didn't
check if it's null before using it. This patch adds two checks.

Signed-off-by: Lidza Louina <lidza.louina@oracle.com>
Acked-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ptlrpc/sec.c
drivers/staging/lustre/lustre/ptlrpc/sec_plain.c