diff options
author | Linus Torvalds <[email protected]> | 2011-05-11 14:58:34 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-05-12 07:46:43 -0700 |
commit | c47747fde931c02455683bd00ea43eaa62f35b0e (patch) | |
tree | a98fbf2b466cabbc71a685a24496e08e074ecfb2 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 698b368275c3fa98261159253cfc79653f9dffc6 (diff) |
fbmem: make read/write/ioctl use the frame buffer at open time
read/write/ioctl on a fbcon file descriptor has traditionally used the
fbcon not when it was opened, but as it was at the time of the call.
That makes no sense, but the lack of sense is much more obvious now that
we properly ref-count the usage - it means that the ref-counting doesn't
actually protect operations we do on the frame buffer.
This changes it to look at the fb_info that we got at open time, but in
order to avoid using a frame buffer long after it has been unregistered,
we do verify that it is still current, and return -ENODEV if not.
Acked-by: Tim Gardner <[email protected]>
Tested-by: Daniel J Blueman <[email protected]>
Tested-by: Anca Emanuel <[email protected]>
Cc: Bruno Prémont <[email protected]>
Cc: Alan Cox <[email protected]>
Cc: Paul Mundt <[email protected]>
Cc: Dave Airlie <[email protected]>
Cc: Andy Whitcroft <[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