]> err.no Git - linux-2.6/commit
[PATCH] ppc32: Check return of ppc_sys_get_pdata before accessing pointer
authorKumar Gala <galak@freescale.com>
Sat, 25 Jun 2005 21:54:36 +0000 (14:54 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:24:26 +0000 (16:24 -0700)
commit62aa751d16399637325852bc0a1fcf13c2476dd7
tree5d2bcc52ea85e05e5d487be73500847614bc8bcd
parent09ffd94fb15d85fbf9eebb8180f50264b264d6fe
[PATCH] ppc32: Check return of ppc_sys_get_pdata before accessing pointer

Ensure that the returned pointer from ppc_sys_get_pdata is not NULL before we
start using it.  This handles any cases where we have variants of processors
on the same board with different functionality.

Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/platforms/83xx/mpc834x_sys.c
arch/ppc/platforms/85xx/mpc8540_ads.c
arch/ppc/platforms/85xx/mpc8560_ads.c
arch/ppc/platforms/85xx/sbc8560.c
arch/ppc/platforms/85xx/stx_gp3.c