summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/xarray.py
diff options
context:
space:
mode:
authorZhen Ni <zhen.ni@easystack.cn>2025-09-23 10:51:04 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-02 14:48:37 +0300
commit41782c44bb8431c43043129ae42f2ba614938479 (patch)
treed7b0833db7cd03481672f3095e41385a502c636e /scripts/gdb/linux/xarray.py
parenta63e7dcf6a5524569dfb1c666e8fc1b1bb79daa7 (diff)
downloadlinux-41782c44bb8431c43043129ae42f2ba614938479.tar.xz
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 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions