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)
commit9e326f78713a4421fe11afc2ddeac07698fac131
tree0b927328171fefe95865293359858a58d8a18f4b
parentcd92208f6996f7d190a15eb278e7d02499e2d264
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