tty/vt: consolemap: zero uni_pgdir using kcalloc()
authorJiri Slaby <jslaby@suse.cz>
Tue, 7 Jun 2022 10:49:21 +0000 (12:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 11:37:01 +0000 (13:37 +0200)
commit32bd78fc4948471be2853ba8b5229e4e1327e13e
tree69799edc147ebab7d2f2c3630f50175787be9bb5
parent9254365443f72838a276bb2d9a9935c802e3adc8
tty/vt: consolemap: zero uni_pgdir using kcalloc()

The newly allocated p->uni_pgdir[n] is initialized to NULLs right after
a kmalloc_array() allocation. Combine these two using kcalloc().

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220607104946.18710-11-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/consolemap.c