Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88dd0be3 authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

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: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent b8291ad0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}