diff options
Diffstat (limited to 'arch/powerpc/kernel/hw_breakpoint.c')
-rw-r--r-- | arch/powerpc/kernel/hw_breakpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/hw_breakpoint.c b/arch/powerpc/kernel/hw_breakpoint.c index 2bc0584be81c..f3a82dde61db 100644 --- a/arch/powerpc/kernel/hw_breakpoint.c +++ b/arch/powerpc/kernel/hw_breakpoint.c | |||
@@ -111,7 +111,7 @@ void arch_unregister_hw_breakpoint(struct perf_event *bp) | |||
111 | * and the single_step_dabr_instruction(), then cleanup the breakpoint | 111 | * and the single_step_dabr_instruction(), then cleanup the breakpoint |
112 | * restoration variables to prevent dangling pointers. | 112 | * restoration variables to prevent dangling pointers. |
113 | */ | 113 | */ |
114 | if (bp->ctx->task) | 114 | if (bp->ctx && bp->ctx->task) |
115 | bp->ctx->task->thread.last_hit_ubp = NULL; | 115 | bp->ctx->task->thread.last_hit_ubp = NULL; |
116 | } | 116 | } |
117 | 117 | ||