]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
selinux: One function call less in genfs_read() after null pointer detection
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 14 Jan 2017 16:43:47 +0000 (17:43 +0100)
committerPaul Moore <paul@paul-moore.com>
Thu, 23 Mar 2017 21:53:29 +0000 (17:53 -0400)
commit315e01ada8047cba0520ecca050ad8f5237abb41
tree1f6c9da320e1f8ac8582b8dfc0d430a70f53e83c
parent3a0aa56518432a1a598ac3e48a93f2e99c66a393
selinux: One function call less in genfs_read() after null pointer detection

Call the function "kfree" at the end only after it was determined
that the local variable "newgenfs" contained a non-null pointer.

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