]> git.baikalelectronics.ru Git - kernel.git/commit
tty/vt: don't set font mappings on vc not supporting this
authorImre Deak <imre.deak@intel.com>
Thu, 2 Oct 2014 13:34:31 +0000 (16:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 04:12:02 +0000 (20:12 -0800)
commit8eac90b8b743baa0ad0b8b1cae8dcc3fb5259e68
tree0b927328171fefe95865293359858a58d8a18f4b
parentebc3778d3ec864900064e5124a33ac9a6f5a5789
tty/vt: don't set font mappings on vc not supporting this

We can call this function for a dummy console that doesn't support
setting the font mapping, which will result in a null ptr BUG. So check
for this case and return error for consoles w/o font mapping support.

Reference: https://bugzilla.kernel.org/show_bug.cgi?id=59321
Signed-off-by: Imre Deak <imre.deak@intel.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/consolemap.c