nfsd: minor write_pool_threads exit cleanup
J. Bruce Fields [Tue, 28 Jul 2009 15:37:25 +0000 (11:37 -0400)]
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>

fs/nfsd/nfsctl.c

index 48da164..b51e7ae 100644 (file)
@@ -784,11 +784,7 @@ static ssize_t write_pool_threads(struct file *file, char *buf, size_t size)
                size -= len;
                mesg += len;
        }
-
-       kfree(nthreads);
-       mutex_unlock(&nfsd_mutex);
-       return (mesg-buf);
-
+       rv = mesg - buf;
 out_free:
        kfree(nthreads);
        mutex_unlock(&nfsd_mutex);