Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180109
b: refs/heads/master
c: b23ff0e
h: refs/heads/master
i:
  180107: f1e0d33
v: v3
  • Loading branch information
Mahesh Salgaonkar authored and Frederic Weisbecker committed Jan 28, 2010
1 parent b63b4bd commit f6062dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f5102ca4b8a8e598dbfa154322ea684bc98da96
refs/heads/master: b23ff0e9330e4b11e18af984d50573598e10e7f9
4 changes: 4 additions & 0 deletions trunk/kernel/hw_breakpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ int register_perf_hw_breakpoint(struct perf_event *bp)
if (!bp->attr.disabled || !bp->overflow_handler)
ret = arch_validate_hwbkpt_settings(bp, bp->ctx->task);

/* if arch_validate_hwbkpt_settings() fails then release bp slot */
if (ret)
release_bp_slot(bp);

return ret;
}

Expand Down

0 comments on commit f6062dc

Please sign in to comment.