From: J. Bruce Fields Date: Thu, 16 May 2019 18:24:40 +0000 (-0400) Subject: nfsd: don't call nfsd_reply_cache_shutdown twice X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b401170f6d9cd4270e0159d9b016f4ccb06caa85;p=linux.git 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 --- 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; }