summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorWang Zhaolong <wangzhaolong@huaweicloud.com>2025-08-29 03:59:59 +0300
committerSteve French <stfrench@microsoft.com>2025-09-01 01:46:57 +0300
commit6976c7a69dafbb34a0d4814e2def9d3d7114836d (patch)
treef75ed457abfa4afd783dfb7f4936aa89b4a7748c /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parentb320789d6883cc00ac78ce83bccbfe7ed58afcf0 (diff)
downloadlinux-6976c7a69dafbb34a0d4814e2def9d3d7114836d.tar.xz
smb: client: Fix NULL pointer dereference in cifs_debug_dirs_proc_show()
Reading /proc/fs/cifs/open_dirs may hit a NULL dereference when tcon->cfids is NULL. Add NULL check before accessing cfids to prevent the crash. Reproduction: - Mount CIFS share - cat /proc/fs/cifs/open_dirs Fixes: 844e5c0eb176 ("smb3 client: add way to show directory leases for improved debugging") Signed-off-by: Wang Zhaolong <wangzhaolong@huaweicloud.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions