Commit e3126f86 authored by Steve French's avatar Steve French Committed by Steve French

free mempool in correct order

parent 497d5fc2
......@@ -653,10 +653,11 @@ cifs_init_mids(void)
static void
cifs_destroy_mids(void)
{
mempool_destroy(cifs_mid_poolp);
if (kmem_cache_destroy(cifs_mid_cachep))
printk(KERN_WARNING
"cifs_destroy_mids: error not all structures were freed\n");
mempool_destroy(cifs_mid_poolp);
if (kmem_cache_destroy(cifs_oplock_cachep))
printk(KERN_WARNING
"error not all oplock structures were freed\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment