kernel-ark/arch/tile
Colin Ian King 9088616fb3 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]
2015-04-17 12:58:41 -04:00
..
configs netpoll: delete defconfig references to obsolete NETPOLL_TRAP 2014-11-29 21:13:48 -08:00
gxio arch: tile: gxio: Export symbols for module using in 'mpipe.c' 2014-11-11 15:41:45 -05:00
include Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile 2015-02-13 10:43:04 -08:00
kernel arch: tile: fix null pointer dereference on pt_regs pointer 2015-04-17 12:58:41 -04:00
kvm rcu: Make SRCU optional by using CONFIG_SRCU 2015-01-06 11:04:29 -08:00
lib tile: include: asm: use 'long long' instead of 'u64' for atomic64_t and its related functions 2013-09-27 16:08:56 -04:00
mm tile/elf: reorganize notify_exec() 2015-04-17 12:58:31 -04:00
Kbuild
Kconfig tilegx: Enable ARCH_SUPPORTS_ATOMIC_RMW 2014-10-02 10:19:33 -04:00
Kconfig.debug tile: remove DEBUG_EXTRA_FLAGS kernel config option 2013-09-03 14:52:17 -04:00
Makefile tile: remove DEBUG_EXTRA_FLAGS kernel config option 2013-09-03 14:52:17 -04:00