NetLabel: fix a cache race condition
authorpaul.moore@hp.com <paul.moore@hp.com>
Wed, 4 Oct 2006 15:46:31 +0000 (11:46 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 12 Oct 2006 06:59:29 +0000 (23:59 -0700)
Testing revealed a problem with the NetLabel cache where a cached entry could
be freed while in use by the LSM layer causing an oops and other problems.
This patch fixes that problem by introducing a reference counter to the cache
entry so that it is only freed when it is no longer in use.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: James Morris <jmorris@namei.org>

No differences found