diff options
Diffstat (limited to 'fs/nfsd/nfsctl.c')
-rw-r--r-- | fs/nfsd/nfsctl.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index c55298ed5772..fa49cff5ee65 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c | |||
@@ -673,9 +673,7 @@ static ssize_t __write_ports_addfd(char *buf) | |||
673 | 673 | ||
674 | err = svc_addsock(nfsd_serv, fd, buf, SIMPLE_TRANSACTION_LIMIT); | 674 | err = svc_addsock(nfsd_serv, fd, buf, SIMPLE_TRANSACTION_LIMIT); |
675 | if (err < 0) { | 675 | if (err < 0) { |
676 | if (nfsd_serv->sv_nrthreads == 1) | 676 | nfsd_destroy(net); |
677 | svc_shutdown_net(nfsd_serv, net); | ||
678 | svc_destroy(nfsd_serv); | ||
679 | return err; | 677 | return err; |
680 | } | 678 | } |
681 | 679 | ||
@@ -744,9 +742,7 @@ out_close: | |||
744 | svc_xprt_put(xprt); | 742 | svc_xprt_put(xprt); |
745 | } | 743 | } |
746 | out_err: | 744 | out_err: |
747 | if (nfsd_serv->sv_nrthreads == 1) | 745 | nfsd_destroy(net); |
748 | svc_shutdown_net(nfsd_serv, net); | ||
749 | svc_destroy(nfsd_serv); | ||
750 | return err; | 746 | return err; |
751 | } | 747 | } |
752 | 748 | ||