diff options
author | Kleber Sacilotto de Souza <[email protected]> | 2012-07-12 17:14:36 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <[email protected]> | 2012-07-13 13:37:17 +1000 |
commit | 10db8d212864cb6741df7d7fafda5ab6661f6f88 (patch) | |
tree | ad321c9ec8d250bf0c1d7a2cc61fec190b0e3be6 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 26b0d14106954ae46d2f4f7eec3481828a210f7d (diff) |
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 <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
CC: [email protected] [v3.4+]
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions