]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb/client: avoid null-ptr-deref when tests fail in test_cmp_map()
authorSunJianHao <24031212195@stu.xidian.edu.cn>
Fri, 3 Apr 2026 13:12:05 +0000 (21:12 +0800)
committerSteve French <stfrench@microsoft.com>
Mon, 6 Apr 2026 00:58:40 +0000 (19:58 -0500)
commit53cf44fa727113affda4a17207a54e0d27c7fc78
tree177b70d40fc2395af841f02b148558d5b8b81147
parentb3f5c2a41a0d0d2efbfb4dcdcdc086856562b28b
smb/client: avoid null-ptr-deref when tests fail in test_cmp_map()

Use KUNIT_ASSERT_NOT_NULL() to abort the test cases on failure.

Reported-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: SunJianHao <24031212195@stu.xidian.edu.cn>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2maperror_test.c