Unverified Commit cee28fc9 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12336 ntb: intel: Fix the NULL vs IS_ERR() bug for debugfs_create_dir()

parents 3d3d4b73 0f926bd9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -778,7 +778,7 @@ static void ndev_init_debugfs(struct intel_ntb_dev *ndev)
		ndev->debugfs_dir =
			debugfs_create_dir(pci_name(ndev->ntb.pdev),
					   debugfs_dir);
		if (!ndev->debugfs_dir)
		if (IS_ERR(ndev->debugfs_dir))
			ndev->debugfs_info = NULL;
		else
			ndev->debugfs_info =