Skip to content

Commit

Permalink
nfsd: don't call nfsd_reply_cache_shutdown twice
Browse files Browse the repository at this point in the history
The caller is cleaning up on ENOMEM, don't try to do it here too.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
J. Bruce Fields committed Jul 3, 2019
1 parent 3b2d4dc commit b401170
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/nfsd/nfscache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b401170

Please sign in to comment.