NeilBrown 7917f01a28 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>
2024-12-20 09:17:12 -05:00
..
2024-09-16 13:07:59 +02:00
2024-11-01 07:37:10 -10:00
2024-11-08 07:31:03 -10:00
2024-07-15 11:14:59 -07:00
2024-07-15 11:14:59 -07:00
2024-09-16 09:14:02 +02:00
2024-10-11 15:12:07 +00:00
2024-10-17 00:28:06 -07:00
2024-10-25 17:05:49 +02:00
2024-09-23 11:55:17 -07:00
2024-11-01 07:45:00 -10:00
2024-10-22 09:40:37 -05:00
2024-10-08 10:53:06 -07:00
2024-09-19 10:18:15 +02:00
2024-05-28 11:52:53 +02:00
\n
2024-09-23 10:49:28 -07:00
2024-08-21 22:32:58 +02:00
2024-11-09 12:58:23 -08:00
2024-04-23 13:27:43 +02:00
2024-11-02 09:22:16 -10:00
2024-10-02 12:02:15 -07:00
2024-08-29 06:20:44 +12:00
2024-07-15 11:14:59 -07:00
2024-09-16 08:54:30 +02:00
2024-09-16 08:35:09 +02:00
2024-09-18 08:53:53 +02:00
2024-08-28 13:05:39 +02:00
2024-09-16 08:54:30 +02:00
2024-09-24 15:29:42 -07:00
2024-09-16 11:15:26 +02:00
2024-09-27 08:18:43 -07:00
2024-09-27 18:29:19 +02:00
2024-09-27 08:18:43 -07:00
2024-05-02 16:28:20 +02:00