aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/hw_breakpoint.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/hw_breakpoint.c')
-rw-r--r--kernel/hw_breakpoint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/hw_breakpoint.c b/kernel/hw_breakpoint.c
index 06d372fc026d..dd3fb4a999d3 100644
--- a/kernel/hw_breakpoint.c
+++ b/kernel/hw_breakpoint.c
@@ -442,7 +442,7 @@ register_wide_hw_breakpoint(unsigned long addr,
442 442
443 *pevent = bp; 443 *pevent = bp;
444 444
445 if (IS_ERR(bp) || !bp) { 445 if (IS_ERR(bp)) {
446 err = PTR_ERR(bp); 446 err = PTR_ERR(bp);
447 goto fail; 447 goto fail;
448 } 448 }
@@ -453,7 +453,7 @@ register_wide_hw_breakpoint(unsigned long addr,
453fail: 453fail:
454 for_each_possible_cpu(cpu) { 454 for_each_possible_cpu(cpu) {
455 pevent = per_cpu_ptr(cpu_events, cpu); 455 pevent = per_cpu_ptr(cpu_events, cpu);
456 if (IS_ERR(*pevent) || !*pevent) 456 if (IS_ERR(*pevent))
457 break; 457 break;
458 unregister_hw_breakpoint(*pevent); 458 unregister_hw_breakpoint(*pevent);
459 } 459 }