Skip to content
  • Bruno Prémont's avatar
    Further fbcon sanity checking · c590cece
    Bruno Prémont authored
    
    
    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: default avatarBruno Prémont <bonbons@linux-vserver.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    c590cece