]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i40e: Fix an NULL vs IS_ERR() bug for debugfs_create_dir()
authorWang Ming <machel@vivo.com>
Thu, 13 Jul 2023 01:42:39 +0000 (09:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2023 09:33:50 +0000 (11:33 +0200)
commit76c0675cc887b97f39b0359c0401f5b769e4dfa6
tree13df107025c9eafa7b4dd858d28bf0ed4966dffd
parentb3eae8146b60e5be3605c222d50a6d8ab0b68fa1
i40e: Fix an NULL vs IS_ERR() bug for debugfs_create_dir()

[ Upstream commit 043b1f185fb0f3939b7427f634787706f45411c4 ]

The debugfs_create_dir() function returns error pointers.
It never returns NULL. Most incorrect error checks were fixed,
but the one in i40e_dbg_init() was forgotten.

Fix the remaining error check.

Fixes: 02e9c290814c ("i40e: debugfs interface")
Signed-off-by: Wang Ming <machel@vivo.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/i40e/i40e_debugfs.c