Re: [RESEND PATCHv2] misc: cxl: Fix possible null pointer dereference

2018-10-04 Thread Andrew Donnellan
On 4/10/18 3:02 pm, zhong jiang wrote: It is not safe to dereference an object before a null test. It is not needed and just remove them. Ftrace can be used instead. Signed-off-by: zhong jiang Acked-by: Andrew Donnellan --- drivers/misc/cxl/guest.c | 2 -- 1 file changed, 2 deletions(-)

Re: [RESEND PATCHv2] misc: cxl: Fix possible null pointer dereference

2018-10-04 Thread Frederic Barrat
Le 04/10/2018 à 07:02, zhong jiang a écrit : It is not safe to dereference an object before a null test. It is not needed and just remove them. Ftrace can be used instead. Signed-off-by: zhong jiang --- Acked-by: Frederic Barrat drivers/misc/cxl/guest.c | 2 -- 1 file changed, 2 del

[RESEND PATCHv2] misc: cxl: Fix possible null pointer dereference

2018-10-03 Thread zhong jiang
It is not safe to dereference an object before a null test. It is not needed and just remove them. Ftrace can be used instead. Signed-off-by: zhong jiang --- drivers/misc/cxl/guest.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/misc/cxl/guest.c b/drivers/misc/cxl/guest.c index 3b