]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
nfsd: don't call nfsd_reply_cache_shutdown twice
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 16 May 2019 18:24:40 +0000 (14:24 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 3 Jul 2019 21:52:08 +0000 (17:52 -0400)
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

index da52b594362a4d58299f8dbba503bde35e75fe20..a08f792b81ddb27788fbb2c244d9535730c0f8e6 100644 (file)
@@ -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;
 }