Re: [patch] HWBKPT FIX: Release the bp slot ifarch_validate_hwbkpt_settings() fails.

From: Frederic Weisbecker
Date: Thu Jan 21 2010 - 08:12:58 EST

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@xxxxxxxxxxxxxxxxxx>

Thanks. I'm queuing it.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at