linux/drivers/ntb/hw
Jinjie Ruan 16e5bed6c1 ntb: intel: Fix the NULL vs IS_ERR() bug for debugfs_create_dir()
[ Upstream commit e229897d37 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-10-04 16:29:35 +02:00
..
amd ntb: amd: Drop unnecessary error check for debugfs_create_dir 2023-08-18 09:50:06 -04:00
epf ntb: epf: Remove redundant pci_clear_master 2023-07-08 11:02:37 -04:00
idt ntb: idt: drop redundant pci_enable_pcie_error_reporting() 2023-07-08 11:02:36 -04:00
intel ntb: intel: Fix the NULL vs IS_ERR() bug for debugfs_create_dir() 2024-10-04 16:29:35 +02:00
mscc driver core: class: remove struct class_interface * from callbacks 2023-04-03 21:42:52 +02:00
Kconfig NTB: Add support for EPF PCI Non-Transparent Bridge 2021-02-23 14:12:53 -06:00
Makefile NTB: Add support for EPF PCI Non-Transparent Bridge 2021-02-23 14:12:53 -06:00