From b401170f6d9cd4270e0159d9b016f4ccb06caa85 Mon Sep 17 00:00:00 2001
From: "J. Bruce Fields" <bfields@redhat.com>
Date: Thu, 16 May 2019 14:24:40 -0400
Subject: [PATCH] nfsd: don't call nfsd_reply_cache_shutdown twice

The caller is cleaning up on ENOMEM, don't try to do it here too.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
---
 fs/nfsd/nfscache.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/nfsd/nfscache.c b/fs/nfsd/nfscache.c
index da52b594362a4..a08f792b81ddb 100644
--- a/fs/nfsd/nfscache.c
+++ b/fs/nfsd/nfscache.c
@@ -207,7 +207,6 @@ int nfsd_reply_cache_init(void)
 	return 0;
 out_nomem:
 	printk(KERN_ERR "nfsd: failed to allocate reply cache\n");
-	nfsd_reply_cache_shutdown();
 	return -ENOMEM;
 }
 
-- 
GitLab