]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: fix memdup.cocci warnings
authorkernel test robot <lkp@intel.com>
Thu, 20 Aug 2020 10:20:51 +0000 (12:20 +0200)
committerPaul Moore <paul@paul-moore.com>
Thu, 20 Aug 2020 12:39:05 +0000 (08:39 -0400)
commitd9f707a3bc16c3c5860921cb84b50d29b9f193a5
tree2679b83d99e3d396cacae0be06284d61e178e12a
parent3e9a3ba3d18295dcec7711173cda3913f1bdda84
selinux: fix memdup.cocci warnings

Use kmemdup rather than duplicating its implementation

Generated by: scripts/coccinelle/api/memdup.cocci

Fixes: af4864c1b2c0 ("selinux: refactor changing booleans")
CC: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/conditional.c