diff options
author | Bob Liu <[email protected]> | 2011-06-27 16:18:06 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-06-27 18:00:12 -0700 |
commit | 2b4b2482e70eba10dd98653a3a5ac68126565e24 (patch) | |
tree | 81f933ce6291135529cda6581c59c55386d2832e /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 8c95aa60d2ae3c4e63705ee0f18e155898b09662 (diff) |
romfs: fix romfs_get_unmapped_area() argument check
romfs_get_unmapped_area() checks argument `len' without considering
PAGE_ALIGN which will cause do_mmap_pgoff() return -EINVAL error after
commit f67d9b1576c ("nommu: add page_align to mmap").
Fix the check by changing it in same way ramfs_nommu_get_unmapped_area()
was changed in ramfs/file-nommu.c.
Signed-off-by: Bob Liu <[email protected]>
Cc: David Howells <[email protected]>
Cc: Paul Mundt <[email protected]>
Acked-by: Greg Ungerer <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions