Messages in this thread | | | Date | Fri, 19 Nov 2004 21:18:14 -0500 (EST) | From | James Morris <> | Subject | Re: [PATCH] selinux: cache not freed if load_policy fails; reload BUG's |
| |
> If security_load_policy() fails on the first try, the cache is never cleaned > up. When the policy is fixed and a reload is attempted, the old cache will > still exist, causing a BUG() in kmem_cache_create(). > > This patch adds a destroy operation to clean up the cache on failure.
Looks correct to me.
- James -- James Morris <jmorris@redhat.com>
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |