vc: create vcs(a) devices for consoles
commit594e9d5bb688ee399147801c70e0b14f40f98029
authorKay Sievers <kay.sievers@vrfy.org>
Mon, 20 Jul 2009 15:04:55 +0000 (20 16:04 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 30 Jul 2009 21:39:38 +0000 (30 14:39 -0700)
tree9d7c34a026242d33d50452eb410a9db2249ee5cb
parent6bfa23bd0b93d00e489ed1ec9670f8d780d003ae
vc: create vcs(a) devices for consoles

commit c46a7aec556ffdbdb7357db0b05904b176cb3375 upstream.

The buffer for the consoles are unconditionally allocated at con_init()
time, which miss the creation of the vcs(a) devices.

Since 2.6.30 (commit 4995f8ef9d3aac72745e12419d7fbaa8d01b1d81, 'vcs:
hook sysfs devices into object lifetime instead of "binding"' to be
exact) these devices are no longer created at open() and removed on
close(), but controlled by the lifetime of the buffers.

Reported-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Tested-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/vc_screen.c