diff options
-rw-r--r-- | kernel/perf_event.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c index bb06382f98e7..180151ff8376 100644 --- a/kernel/perf_event.c +++ b/kernel/perf_event.c | |||
@@ -664,13 +664,13 @@ group_sched_in(struct perf_event *group_event, | |||
664 | } | 664 | } |
665 | } | 665 | } |
666 | 666 | ||
667 | if (txn) { | 667 | if (!txn) |
668 | ret = pmu->commit_txn(pmu); | 668 | return 0; |
669 | if (!ret) { | ||
670 | pmu->cancel_txn(pmu); | ||
671 | 669 | ||
672 | return 0; | 670 | ret = pmu->commit_txn(pmu); |
673 | } | 671 | if (!ret) { |
672 | pmu->cancel_txn(pmu); | ||
673 | return 0; | ||
674 | } | 674 | } |
675 | 675 | ||
676 | group_error: | 676 | group_error: |