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 <[email protected]> Signed-off-by: Michal Swiatkowski <[email protected]> Reviewed-by: Paul Menzel <[email protected]> Tested-by: Rinitha S <[email protected]> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <[email protected]>
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)