diff options
Diffstat (limited to 'kernel/events/hw_breakpoint.c')
-rw-r--r-- | kernel/events/hw_breakpoint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/events/hw_breakpoint.c b/kernel/events/hw_breakpoint.c index b0309f76d777..3330022a7ac1 100644 --- a/kernel/events/hw_breakpoint.c +++ b/kernel/events/hw_breakpoint.c | |||
@@ -658,10 +658,10 @@ int __init init_hw_breakpoint(void) | |||
658 | 658 | ||
659 | err_alloc: | 659 | err_alloc: |
660 | for_each_possible_cpu(err_cpu) { | 660 | for_each_possible_cpu(err_cpu) { |
661 | if (err_cpu == cpu) | ||
662 | break; | ||
663 | for (i = 0; i < TYPE_MAX; i++) | 661 | for (i = 0; i < TYPE_MAX; i++) |
664 | kfree(per_cpu(nr_task_bp_pinned[i], cpu)); | 662 | kfree(per_cpu(nr_task_bp_pinned[i], cpu)); |
663 | if (err_cpu == cpu) | ||
664 | break; | ||
665 | } | 665 | } |
666 | 666 | ||
667 | return -ENOMEM; | 667 | return -ENOMEM; |