]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - security/selinux/ss/sidtab.c
selinux: Use kmalloc_array() in sidtab_init()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 15 Jan 2017 12:13:19 +0000 (13:13 +0100)
committerPaul Moore <paul@paul-moore.com>
Wed, 29 Mar 2017 15:44:10 +0000 (11:44 -0400)
commitb380f783772eeb66a0da85549a85aadbe5f8e76d
tree99944fceb5c371cf919a4f8ec83ad99c5b95bb92
parentebd2b47ba52760e9653456ba19032f79d734a343
selinux: Use kmalloc_array() in sidtab_init()

A multiplication for the size determination of a memory allocation
indicated that an array data structure should be processed.
Thus use the corresponding function "kmalloc_array".

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/sidtab.c