Skip to content

Commit bedd033

Browse files
Michal Swiatkowskianguy11
authored andcommitted
ice: check correct pointer in fwlog debugfs
pf->ice_debugfs_pf_fwlog should be checked for an error here. Fixes: 96a9a93 ("ice: configure FW logging") Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de> Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
1 parent 3ce58b0 commit bedd033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/ice/ice_debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ void ice_debugfs_fwlog_init(struct ice_pf *pf)
606606

607607
pf->ice_debugfs_pf_fwlog = debugfs_create_dir("fwlog",
608608
pf->ice_debugfs_pf);
609-
if (IS_ERR(pf->ice_debugfs_pf))
609+
if (IS_ERR(pf->ice_debugfs_pf_fwlog))
610610
goto err_create_module_files;
611611

612612
fw_modules_dir = debugfs_create_dir("modules",

0 commit comments

Comments
 (0)