selinux: minor tweaks to selinux_add_opt()
authorPaul Moore <paul@paul-moore.com>
Tue, 21 Dec 2021 20:01:29 +0000 (15:01 -0500)
committerPaul Moore <paul@paul-moore.com>
Tue, 21 Dec 2021 20:14:45 +0000 (15:14 -0500)
commit6cd9d4b97891560b61681cad9cc4307ce0719abc
tree8ac54651f2ec6ce826eb6bfe4190ef0247f65b71
parent2e08df3c7c4e4e74e3dd5104c100f0bf6288aaa8
selinux: minor tweaks to selinux_add_opt()

Two minor edits to selinux_add_opt(): use "sizeof(*ptr)" instead of
"sizeof(type)" in the kzalloc() call, and rename the "Einval" jump
target to "err" for the sake of consistency.

Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c