]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: do not discard const qualifier in cast
authorChristian Göttsche <cgzones@googlemail.com>
Tue, 25 Jan 2022 14:14:17 +0000 (15:14 +0100)
committerPaul Moore <paul@paul-moore.com>
Wed, 26 Jan 2022 20:54:45 +0000 (15:54 -0500)
commit51bb172c612517e841f9bd3916ac204ee9e117d1
treeeb4f9e14351e07ed67b1b33e3c39135b7b091d61
parent4e6c1ad1d0d955abba3a79f0634258bb761c97b7
selinux: do not discard const qualifier in cast

Do not discard the const qualifier on the cast from const void* to
__be32*; the addressed value is not modified.

Reported by clang [-Wcast-qual]

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/netnode.c