summaryrefslogtreecommitdiff
path: root/arch/tile/include/asm/smp.h
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2015-03-16 20:14:02 (GMT)
committerChris Metcalf <cmetcalf@ezchip.com>2015-04-17 16:58:41 (GMT)
commit9088616fb3c4e0d3ec4efb20378691066a218f9c (patch)
treee3b283916b166433376f50ade347470b3cdfa4c9 /arch/tile/include/asm/smp.h
parent5a3b4e8000c1ce476f5e8babd62c580457561f34 (diff)
downloadlinux-9088616fb3c4e0d3ec4efb20378691066a218f9c.tar.xz
arch: tile: fix null pointer dereference on pt_regs pointer
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 check just return NULL rather than falling through to the potential null pointer dereference (since the original intentional outcome would be to return NULL anyhow) for this odd fault case. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com> [tweaked lightly]
Diffstat (limited to 'arch/tile/include/asm/smp.h')
0 files changed, 0 insertions, 0 deletions