From: Derrick Brashear Date: Sun, 10 Jun 2007 06:40:45 +0000 (+0000) Subject: STABLE14-linux-kmem-destroy-fix-20070609 X-Git-Tag: openafs-stable-1_4_5-pre1~102 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b10041bbe73049d4a3af3027554729737c5b43af;p=packages%2Fo%2Fopenafs.git STABLE14-linux-kmem-destroy-fix-20070609 don't destroy if create failed (cherry picked from commit 18484f0fc64a550c1abacb6d2614c7ea12af4052) --- diff --git a/src/afs/LINUX/osi_vfsops.c b/src/afs/LINUX/osi_vfsops.c index f8ec546bd..c5501db3e 100644 --- a/src/afs/LINUX/osi_vfsops.c +++ b/src/afs/LINUX/osi_vfsops.c @@ -316,7 +316,8 @@ afs_init_inodecache(void) void afs_destroy_inodecache(void) { - (void) kmem_cache_destroy(afs_inode_cachep); + if (afs_inode_cachep) + (void) kmem_cache_destroy(afs_inode_cachep); } #else int