Re: [PATCH 1/2] lustre/mdc_lib: fix possible null pointer dereference

2014-03-06 Thread Maxin B. John
Hi, On Thu, Mar 6, 2014 at 8:51 PM, Greg KH wrote: > On Wed, Mar 05, 2014 at 09:53:06PM +0300, Dan Carpenter wrote: >> On Wed, Mar 05, 2014 at 02:04:35PM +0100, Maxin B. John wrote: >> > From: "Maxin B. John" >> > >> > cppcheck reported

[PATCH 2/2] lustre/lov_obd: fix possible null pointer dereference

2014-03-05 Thread Maxin B. John
From: "Maxin B. John" osc_obd can be NULL. cppcheck reported this: [lustre/lustre/lov/lov_obd.c:283]: (error) Possible null pointer dereference: osc_obd - otherwise it is redundant to check if osc_obd is null at line 295 Signed-off-by: Maxin B. John --- drivers/staging/lustre/

[PATCH 1/2] lustre/mdc_lib: fix possible null pointer dereference

2014-03-05 Thread Maxin B. John
From: "Maxin B. John" cppcheck reported possible null pointer dereference in mdc_lib.c [lustre/lustre/mdc/mdc_lib.c:233]: (error) Possible null pointer dereference : op_data - otherwise it is redundant to check if op_data is null at line 226 Signed-off-by: Maxin B. John --- drive