aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorNelson Elhage <[email protected]>2011-12-19 08:39:30 -0500
committerArnaldo Carvalho de Melo <[email protected]>2011-12-20 13:31:15 -0200
commit301b195db179241da8be25f345f3c4e64960f1d5 (patch)
treee397341c3247337926dc970a15ead09f1136679c /net/lapb/lapb_timer.c
parent6581f6e35f7d0338f699fce660adb48e863f2b59 (diff)
perf evlist: Fix errno value reporting on failed mmap
On failure, perf_evlist__mmap_per_{cpu,thread} will try to munmap() every map that doesn't have a NULL base. This will fail with EINVAL if one of them has base == MAP_FAILED, clobbering errno, so that perf_evlist__map will return EINVAL on any failure regardless of the root cause. Fix this by resetting failed maps to a NULL base. Acked-by: Namhyung Kim <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Nelson Elhage <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions