Skip to content

Commit

Permalink
nfsd: minor write_pool_threads exit cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
  • Loading branch information
J. Bruce Fields committed Jul 28, 2009
1 parent 2522a77 commit 413d63d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions fs/nfsd/nfsctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 413d63d

Please sign in to comment.