diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2008-05-06 01:47:29 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-05-19 01:13:07 +0200 |
commit | 88dd0be3874566796fa4ffbdf927a53c4a6a2f4b (patch) | |
tree | 29cb36a8d21d274e5a7dbd11ec69da225d328c65 /fs/nfsd/nfs4callback.c | |
parent | Linux 2.6.26-rc3 (diff) | |
download | linux-88dd0be3874566796fa4ffbdf927a53c4a6a2f4b.tar.xz linux-88dd0be3874566796fa4ffbdf927a53c4a6a2f4b.zip |
nfsd: reorder printk in do_probe_callback to avoid use-after-free
We're currently dereferencing the client after we drop our reference
count to it.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfs4callback.c')
-rw-r--r-- | fs/nfsd/nfs4callback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 0b3ffa9840c2..4d4760e687c3 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c @@ -419,9 +419,9 @@ static int do_probe_callback(void *data) out_release_client: rpc_shutdown_client(client); out_err: - put_nfs4_client(clp); dprintk("NFSD: warning: no callback path to client %.*s\n", (int)clp->cl_name.len, clp->cl_name.data); + put_nfs4_client(clp); return status; } |