Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

console/dummy: leave .con_font_get set to NULL

When this method is set, the caller expects struct console_font fields
to be properly initialized when it returns. Leave it unset otherwise
nonsensical (leaked kernel stack) values are returned to user space.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Cc: stable@vger.kernel.org
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

authored by

Nicolas Pitre and committed by
Bartlomiej Zolnierkiewicz
724ba8b3 91ae3396

-1
-1
drivers/video/console/dummycon.c
··· 67 67 .con_switch = DUMMY, 68 68 .con_blank = DUMMY, 69 69 .con_font_set = DUMMY, 70 - .con_font_get = DUMMY, 71 70 .con_font_default = DUMMY, 72 71 .con_font_copy = DUMMY, 73 72 };