]> asedeno.scripts.mit.edu Git - linux.git/commit
selinux: Use kcalloc() in policydb_index()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 14 Jan 2017 12:08:59 +0000 (13:08 +0100)
committerPaul Moore <paul@paul-moore.com>
Thu, 23 Mar 2017 21:14:16 +0000 (17:14 -0400)
commitad10a10567e243425d7be35a3d950709371fa048
treefa74701746d440e7bd2de8e5b040c7fed397a614
parentcb8d21e3640f18444c597bddaec156637eacecf8
selinux: Use kcalloc() in policydb_index()

Multiplications for the size determination of memory allocations
indicated that array data structures should be processed.
Thus use the corresponding function "kcalloc".

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/policydb.c