]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit985d5db98a54d5f673b1ce3cee61d30dae1d5c66
tree69799edc147ebab7d2f2c3630f50175787be9bb5
parent16659a466ab9226610bcc4f3ae4306b876a82cae
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