]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
vt: hold console_sem across sysfs operations
authorJiri Slaby <jirislaby@gmail.com>
Thu, 24 Jul 2008 04:29:58 +0000 (21:29 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:30 +0000 (10:47 -0700)
commite0426e6a09954d205da2d674a3d368d2715e3afd
treefcdc9863df9b7458f51730aaf8ab022dd87fcc84
parentbbe48ecc7f6559318cfc6c023da225a0b0e14ab3
vt: hold console_sem across sysfs operations

Hold console sem while creating/destroying sysfs files.  Serialisation is
so far done by BKL held in tty release_dev and chrdev_open, but no other
locks are held in open path.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Aristeu Rozanski <aris@ruivo.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/vt.c