diff options
-rw-r--r-- | fs/ecryptfs/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ecryptfs/main.c b/fs/ecryptfs/main.c index 1698132d0e57..612004495141 100644 --- a/fs/ecryptfs/main.c +++ b/fs/ecryptfs/main.c | |||
@@ -738,8 +738,7 @@ static void ecryptfs_free_kmem_caches(void) | |||
738 | struct ecryptfs_cache_info *info; | 738 | struct ecryptfs_cache_info *info; |
739 | 739 | ||
740 | info = &ecryptfs_cache_infos[i]; | 740 | info = &ecryptfs_cache_infos[i]; |
741 | if (*(info->cache)) | 741 | kmem_cache_destroy(*(info->cache)); |
742 | kmem_cache_destroy(*(info->cache)); | ||
743 | } | 742 | } |
744 | } | 743 | } |
745 | 744 | ||