diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index d38c69b591cfe0907d3d9e08bdb0da0380321709..7c04752b76cb88f1678e3f76cd4a2642a4a1a929 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -825,8 +825,8 @@ cifs_init_mids(void) sizeof (struct oplock_q_entry), 0, SLAB_HWCACHE_ALIGN, NULL, NULL); if (cifs_oplock_cachep == NULL) { - kmem_cache_destroy(cifs_mid_cachep); mempool_destroy(cifs_mid_poolp); + kmem_cache_destroy(cifs_mid_cachep); return -ENOMEM; }