diff options
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfsctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 5c6a477c20e..83997282fc1 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c | |||
@@ -545,6 +545,8 @@ static ssize_t write_ports(struct file *file, char *buf, size_t size) | |||
545 | if (nfsd_serv) | 545 | if (nfsd_serv) |
546 | len = svc_sock_names(buf, nfsd_serv, toclose); | 546 | len = svc_sock_names(buf, nfsd_serv, toclose); |
547 | unlock_kernel(); | 547 | unlock_kernel(); |
548 | if (len >= 0) | ||
549 | lockd_down(); | ||
548 | kfree(toclose); | 550 | kfree(toclose); |
549 | return len; | 551 | return len; |
550 | } | 552 | } |