lkml.org 
[lkml]   [2010]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] HWBKPT FIX: Release the bp slot if arch_validate_hwbkpt_settings() fails.
On Thu, Jan 21, 2010 at 06:25:16PM +0530, Mahesh Salgaonkar wrote:
>
> On a given architecture, when hardware breakpoint registration fails due
> to un-supported access type (read/write/execute), we loose the bp slot since
> register_perf_hw_breakpoint() does not release the bp slot on failure.
> Hence, any subsequent hardware breakpoint registration starts failing
> with 'no space left on device' error.
>
> This patch introduces error handling in register_perf_hw_breakpoint()
> function and releases bp slot on error.
>
> Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>


Thanks. I'm queuing it.



\
 
 \ /
  Last update: 2010-01-21 14:15    [W:0.083 / U:0.024 seconds]
©2003-2011 Jasper Spaans