From: Kleber Sacilotto de Souza Date: Thu, 12 Jul 2012 17:14:36 +0000 (+0000) Subject: powerpc/eeh: Check handle_eeh_events() return value X-Git-Tag: v3.6-rc1~132^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10db8d212864cb6741df7d7fafda5ab6661f6f88;p=pandora-kernel.git powerpc/eeh: Check handle_eeh_events() return value 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 Signed-off-by: Benjamin Herrenschmidt CC: stable@vger.kernel.org [v3.4+] --- Reading git-diff-tree failed