]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/eeh: Check handle_eeh_events() return value
authorKleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
Thu, 12 Jul 2012 17:14:36 +0000 (17:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:22:36 +0000 (08:22 -0700)
commited29dbdecb478f6bb8eb40e3f053f3ca76faaff8
treefe1da5f4cad21b7d1da32b1b66b4ce9ca5a67beb
parentb78ea743c537868531ad05c161d2c6cb617c3ecc
powerpc/eeh: Check handle_eeh_events() return value

commit 10db8d212864cb6741df7d7fafda5ab6661f6f88 upstream.

Function eeh_event_handler() dereferences the pointer returned by
handle_eeh_events() without checking, causing a crash if NULL was
returned, which is expected in some situations.

This patch fixes this bug by checking for the value returned by
handle_eeh_events() before dereferencing it.

Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/pseries/eeh_event.c