diff options
author | Naveen N. Rao <[email protected]> | 2012-07-06 01:30:58 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <[email protected]> | 2012-07-11 14:20:20 +1000 |
commit | ac84aa2b3b9b791eac45174d1966d5fdf3bbba1c (patch) | |
tree | ae7fae6ae9aced79d6bb2e9a30a36cd0920a17bf /tools/perf/util/trace-event-scripting.c | |
parent | 1d5a436d2ce9d1b65c905f69a33e78d69245993e (diff) |
powerpc/hw_breakpoints: Fix incorrect pointer access
If arch_validate_hwbkpt_settings() fails, bp->ctx won't be valid and the
kernel panics. Add a check to fix this.
Reported-by: Edjunior Barbosa Machado <[email protected]>
Signed-off-by: Naveen N. Rao <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions