summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorZhen Ni <zhen.ni@easystack.cn>2025-09-23 15:51:04 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-02 13:48:37 +0200
commit41782c44bb8431c43043129ae42f2ba614938479 (patch)
treed7b0833db7cd03481672f3095e41385a502c636e /include/net/aligned_data.h
parenta63e7dcf6a5524569dfb1c666e8fc1b1bb79daa7 (diff)
afs: Fix potential null pointer dereference in afs_put_server
commit 9158c6bb245113d4966df9b2ba602197a379412e upstream. 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: 2757a4dc1849 ("afs: Fix access after dec in put functions") Cc: stable@vger.kernel.org Signed-off-by: Zhen Ni <zhen.ni@easystack.cn> Acked-by: David Howells <dhowells@redhat.com> Reviewed-by: Jeffrey Altman <jaltman@auristor.com> Signed-off-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions