From 453a629b6aca9937d71f7438ee91dade4477b743 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Fri, 14 Mar 2003 02:11:30 -0800 Subject: [PATCH] [PATCH] kNFSd: Fix exit-without-free bug in nfsd --- fs/nfsd/export.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index 03c01534a5226..dfb58e34aefa0 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c @@ -294,7 +294,9 @@ int svc_export_parse(struct cache_detail *cd, char *mesg, int mlen) /* client */ len = qword_get(&mesg, buf, PAGE_SIZE); - if (len <= 0) return -EINVAL; + err = -EINVAL; + if (len <= 0) goto out; + err = -ENOENT; dom = auth_domain_find(buf); if (!dom) -- 2.53.0