]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] kNFSd: Fix exit-without-free bug in nfsd
authorNeil Brown <neilb@cse.unsw.edu.au>
Fri, 14 Mar 2003 10:11:30 +0000 (02:11 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 14 Mar 2003 10:11:30 +0000 (02:11 -0800)
fs/nfsd/export.c

index 03c01534a5226343c0cd15bc2a070f2c57d345d7..dfb58e34aefa00126b40c8a6f1084d49653b8af6 100644 (file)
@@ -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)