Re: [lustre-devel] [PATCH v3] staging/lustre/ptlrpc: Removes potential null dereference

2016-05-16 Thread Drokin, Oleg
On May 16, 2016, at 2:51 PM, Lidza Louina wrote: > 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 Acked-by: Oleg Drokin > --- > drivers/staging/lustre/lustre/ptlrpc/sec.c

[PATCH v3] staging/lustre/ptlrpc: Removes potential null dereference

2016-05-16 Thread Lidza Louina
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 --- drivers/staging/lustre/lustre/ptlrpc/sec.c | 3 +++ drivers/staging/lustre/lustre/ptlrpc/sec_plain.c | 8 ++-- 2 files cha