]> git.baikalelectronics.ru Git - kernel.git/commit
vt: fix issue when fbcon wants to takeover a second time.
authorDave Airlie <airlied@redhat.com>
Thu, 6 Jan 2011 23:57:41 +0000 (09:57 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 23 Jan 2011 03:15:00 +0000 (19:15 -0800)
commit304ecf324224d83207f4482f7bc18dff2479b9f8
treee9a607c2c47e22a020620c1e6abc95c962e46814
parentd3a81907fb3f349bc2b901bf118a200f0c9a1c16
vt: fix issue when fbcon wants to takeover a second time.

With framebuffer handover and multiple GPUs, we get into a
position where the fbcon unbinds the vesafb framebuffer for GPU 1,
but we still have a radeon framebuffer bound from GPU 0, so
we don't unregister the console driver. Then when we tried to bind
the new radeon framebuffer for GPU1 we never get to the bind
call as we fail due to the console being registered already.

This changes the return value to -EBUSY when the driver is
already registered and continues to bind for -EBUSY.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/vt/vt.c