aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorKAMEZAWA Hiroyuki <[email protected]>2010-02-02 13:44:05 -0800
committerLinus Torvalds <[email protected]>2010-02-02 18:11:22 -0800
commit325fda71d0badc1073dc59f12a948f24ff05796a (patch)
treeb143817aba0e8c0d9b4b689bde32fa893a9fb559 /tools/perf/util/trace-event-scripting.c
parent931e80e4b3263db75c8e34f078d22f11bbabd3a3 (diff)
devmem: check vmalloc address on kmem read/write
Otherwise vmalloc_to_page() will BUG(). This also makes the kmem read/write implementation aligned with mem(4): "References to nonexistent locations cause errors to be returned." Here we return -ENXIO (inspired by Hugh) if no bytes have been transfered to/from user space, otherwise return partial read/write results. Signed-off-by: KAMEZAWA Hiroyuki <[email protected]> Signed-off-by: Wu Fengguang <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions