diff options
author | NeilBrown <neilb@suse.de> | 2024-12-20 15:28:18 +1100 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2024-12-20 09:17:12 -0500 |
commit | 7917f01a286ce01e9c085e24468421f596ee1a0c (patch) | |
tree | f62fe91ae0fd446ab816062a9ef9830c4cfa18aa /drivers | |
parent | 9048cf05a17a7bc26f0b8e2e53750b1237303970 (diff) | |
download | lwn-7917f01a286ce01e9c085e24468421f596ee1a0c.tar.gz lwn-7917f01a286ce01e9c085e24468421f596ee1a0c.zip |
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: 1e02c641c3a4 ("NFSD: Prevent NULL dereference in nfsd4_process_cb_update()")
Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions