Re: [PATCH] arch: tile: fix null pointer dereference on pt_regs pointer

2015-03-16 Thread Chris Metcalf
On 3/1/2015 3:12 PM, Colin King wrote: From: Colin Ian King Cppcheck reports the following issue: [arch/tile/kernel/stack.c:116]: (error) Possible null pointer dereference: p In this case, on reporting on an odd fault, p is set to NULL and immediately afterwords p is dereferenced iff !kbt->p

[PATCH] arch: tile: fix null pointer dereference on pt_regs pointer

2015-03-01 Thread Colin King
From: Colin Ian King Cppcheck reports the following issue: [arch/tile/kernel/stack.c:116]: (error) Possible null pointer dereference: p In this case, on reporting on an odd fault, p is set to NULL and immediately afterwords p is dereferenced iff !kbt->profile is false. Rather than doing this