anolis-cloud-kernel/drivers/ntb
Jinjie Ruan 8b822c04bf ntb: intel: Fix the NULL vs IS_ERR() bug for debugfs_create_dir()
ANBZ: #12624

commit e229897d37 upstream.

The debugfs_create_dir() function returns error pointers.
It never returns NULL. So use IS_ERR() to check it.

Fixes: e26a5843f7 ("NTB: Split ntb_hw_intel and ntb_transport drivers")
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>

Fixes: CVE-2023-52917
Signed-off-by: Xiao Long <xiaolong@openanolis.org>
Signed-off-by: 362994 <362994>
Reviewed-by: Guixin Liu <kanie@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/4281
2025-03-19 06:39:59 +00:00
..
hw ntb: intel: Fix the NULL vs IS_ERR() bug for debugfs_create_dir() 2025-03-19 06:39:59 +00:00
test NTB: perf: Fix an error code in perf_setup_inbuf() 2021-09-22 12:28:02 +02:00
Kconfig
Makefile
core.c NTB: Fix the default port and peer numbers for legacy drivers 2020-06-05 20:02:08 -04:00
msi.c
ntb_transport.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00