]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drivers/tty/hvc: don't free hvc_console_setup after init
authorTomoki Sekiyama <tomoki.sekiyama@hds.com>
Fri, 2 May 2014 22:58:24 +0000 (18:58 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 May 2014 12:11:29 +0000 (14:11 +0200)
commit5c5aeb0ca78c6b9cdca6462bf54f50ac28756cbb
treebe6157846a37ab8393947daeb1f1eb2ca0231e84
parentd89a13cf5f83e4f2b6fe98b52530bdab4b773c5c
drivers/tty/hvc: don't free hvc_console_setup after init

commit 501fed45b7e8836ee9373f4d31e2d85e3db6103a upstream.

When 'console=hvc0' is specified to the kernel parameter in x86 KVM guest,
hvc console is setup within a kthread. However, that will cause SEGV
and the boot will fail when the driver is builtin to the kernel,
because currently hvc_console_setup() is annotated with '__init'. This
patch removes '__init' to boot the guest successfully with 'console=hvc0'.

Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@hds.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_console.c