From 72f87f9e8059a75174e8f55bb7e836596aacf0a5 Mon Sep 17 00:00:00 2001 From: "Naveen N. Rao" Date: Fri, 6 Jul 2012 01:30:58 +0000 Subject: [PATCH] --- yaml --- r: 313685 b: refs/heads/master c: ac84aa2b3b9b791eac45174d1966d5fdf3bbba1c h: refs/heads/master i: 313683: 515937b0f016c936ce7405c8c2eeefdeb1761e7d v: v3 --- [refs] | 2 +- trunk/arch/powerpc/kernel/hw_breakpoint.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index cc8e1ffedb28..c7a3f9140e58 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1d5a436d2ce9d1b65c905f69a33e78d69245993e +refs/heads/master: ac84aa2b3b9b791eac45174d1966d5fdf3bbba1c diff --git a/trunk/arch/powerpc/kernel/hw_breakpoint.c b/trunk/arch/powerpc/kernel/hw_breakpoint.c index 2bc0584be81c..f3a82dde61db 100644 --- a/trunk/arch/powerpc/kernel/hw_breakpoint.c +++ b/trunk/arch/powerpc/kernel/hw_breakpoint.c @@ -111,7 +111,7 @@ void arch_unregister_hw_breakpoint(struct perf_event *bp) * and the single_step_dabr_instruction(), then cleanup the breakpoint * restoration variables to prevent dangling pointers. */ - if (bp->ctx->task) + if (bp->ctx && bp->ctx->task) bp->ctx->task->thread.last_hit_ubp = NULL; }