]> git.karo-electronics.de Git - linux-beck.git/commit
tty: fix console_sem lock order
authorArnd Bergmann <arnd@arndb.de>
Tue, 1 Jun 2010 20:53:03 +0000 (22:53 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 20:47:43 +0000 (13:47 -0700)
commit83ceb67d7dfe6aedf0e47dd6887b7b3c753542b2
treeae45ce855037966218ebcf61c9290117d29a2cb0
parent64ba3dc3143d94bbe935722aa17fa516b232bc83
tty: fix console_sem lock order

vgacon_do_font_op releases and reacquires the BTM while holding
console_sem. This violates the rule that BTM has to be the
outer lock whenever we hold both.

There does not seem to be any reason to give up the BTM here,
so just stop doing that.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/video/console/vgacon.c