3337cb6327
commit379d9af3f3upstream. The count increases only when a node is successfully added to the linked list. Cc: stable@vger.kernel.org Fixes:fa1aa143ac("selinux: extended permissions for ioctls") Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com> Signed-off-by: Paul Moore <paul@paul-moore.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>