diff options
author | Bruno Prémont <[email protected]> | 2011-05-14 12:24:15 +0200 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-05-14 10:28:54 -0700 |
commit | c590cece75728a85ea06801df3ebad2d7ad8612c (patch) | |
tree | 3f3f7ade41317d86305a3839d9f2ad646945aa60 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 712f3147aee0fbbbbed2da20b21b272c5505125e (diff) |
Further fbcon sanity checking
This moves the
if (num_registered_fb == FB_MAX)
return -ENXIO;
check _AFTER_ the call to do_remove_conflicting_framebuffers() as this
would (now in a safe way) allow a native driver to replace the
conflicting one even if all slots in registered_fb[] are taken.
This also prevents unregistering a framebuffer that is no longer
registered (vga16f will unregister at module unload time even if the
frame buffer had been unregistered earlier due to being found
conflicting).
Signed-off-by: Bruno Prémont <[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