Skip to content
Snippets Groups Projects
Commit 7917f01a authored by NeilBrown's avatar NeilBrown Committed by Chuck Lever
Browse files

nfsd: restore callback functionality for NFSv4.0


A recent patch inadvertently broke callbacks for NFSv4.0.

In the 4.0 case we do not expect a session to be found but still need to
call setup_callback_client() which will not try to dereference it.

This patch moves the check for failure to find a session into the 4.1+
branch of setup_callback_client()

Fixes: 1e02c641 ("NFSD: Prevent NULL dereference in nfsd4_process_cb_update()")
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 9048cf05
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment