Revision b23ff0e9330e4b11e18af984d50573598e10e7f9 authored by Mahesh Salgaonkar on 21 January 2010, 12:55:16 UTC, committed by Frederic Weisbecker on 28 January 2010, 13:15:51 UTC
On a given architecture, when hardware breakpoint registration fails
due to un-supported access type (read/write/execute), we lose 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>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: K. Prasad <prasad@linux.vnet.ibm.com>
Cc: Maneesh Soni <maneesh@in.ibm.com>
LKML-Reference: <20100121125516.GA32521@in.ibm.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
1 parent 7f5102c
History
File Mode Size
00-INDEX -rw-r--r-- 1.6 KB
arkfb.txt -rw-r--r-- 2.0 KB
aty128fb.txt -rw-r--r-- 2.1 KB
cirrusfb.txt -rw-r--r-- 1.9 KB
cmap_xfbdev.txt -rw-r--r-- 1.9 KB
deferred_io.txt -rw-r--r-- 3.0 KB
ep93xx-fb.txt -rw-r--r-- 4.2 KB
fbcon.txt -rw-r--r-- 11.5 KB
framebuffer.txt -rw-r--r-- 14.1 KB
gxfb.txt -rw-r--r-- 1.2 KB
imacfb.txt -rw-r--r-- 600 bytes
intel810.txt -rw-r--r-- 8.3 KB
intelfb.txt -rw-r--r-- 3.6 KB
internals.txt -rw-r--r-- 2.6 KB
lxfb.txt -rw-r--r-- 1.2 KB
matroxfb.txt -rw-r--r-- 19.1 KB
metronomefb.txt -rw-r--r-- 2.0 KB
modedb.txt -rw-r--r-- 6.0 KB
pvr2fb.txt -rw-r--r-- 2.2 KB
pxafb.txt -rw-r--r-- 4.6 KB
s3fb.txt -rw-r--r-- 2.5 KB
sa1100fb.txt -rw-r--r-- 1.3 KB
sh7760fb.txt -rw-r--r-- 4.4 KB
sisfb.txt -rw-r--r-- 6.3 KB
sstfb.txt -rw-r--r-- 6.7 KB
tgafb.txt -rw-r--r-- 2.4 KB
tridentfb.txt -rw-r--r-- 2.6 KB
uvesafb.txt -rw-r--r-- 6.9 KB
vesafb.txt -rw-r--r-- 6.1 KB
viafb.modes -rw-r--r-- 30.8 KB
viafb.txt -rw-r--r-- 7.4 KB
vt8623fb.txt -rw-r--r-- 1.8 KB

back to top