• Antonino A. Daplas's avatar
    [PATCH] Detaching fbcon: fix give_up_console() · 1c8ce271
    Antonino A. Daplas authored
    To allow for detaching fbcon, it must be able to give up the console.
    However, the function give_up_console() is plain broken.  It just sets the
    entries in the console driver map to NULL, it leaves the vt layer without a
    console driver, and does not decrement the module reference count.  Calling
    give_up_console() is guaranteed to hang the machine..
    
    To fix this problem, ensure that the virtual consoles are not left dangling
    without a driver.  All systems have a default boot driver (either vgacon or
    dummycon) which is never unloaded.  For those vt's that lost their driver, the
    default boot driver is reassigned back to them.
    Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    1c8ce271
vt.c 78.6 KB