selinux: fix the labeled xfrm/IPsec reference count handling
authorPaul Moore <pmoore@redhat.com>
Wed, 29 May 2013 07:36:32 +0000 (07:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Jun 2013 00:30:07 +0000 (17:30 -0700)
commite4e8536f65b51ce91c30588b0925872bdfc60d03
tree729236474c6bfdc9fcfc19db57504b5b13936825
parente4c1721642bbd42d8142f4811cde0588c28db51d
selinux: fix the labeled xfrm/IPsec reference count handling

The SELinux labeled IPsec code was improperly handling its reference
counting, dropping a reference on a delete operation instead of on a
free/release operation.

Reported-by: Ondrej Moris <omoris@redhat.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
security/selinux/xfrm.c