afs_put_server() accessed server->debug_id before the NULL check, which
could lead to a null pointer dereference. Move the debug_id assignment,
ensuring we never dereference a NULL server pointer.
Fixes: 2757a4dc18 ("afs: Fix access after dec in put functions")
Cc: [email protected]
Signed-off-by: Zhen Ni <[email protected]>
Acked-by: David Howells <[email protected]>
Reviewed-by: Jeffrey Altman <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>