ice: check correct pointer in fwlog debugfs
pf->ice_debugfs_pf_fwlog should be checked for an error here.
Fixes: 96a9a9341c ("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>
This commit is contained in:
committed by
Tony Nguyen
parent
3ce58b01ad
commit
bedd0330a1
@@ -606,7 +606,7 @@ void ice_debugfs_fwlog_init(struct ice_pf *pf)
|
||||
|
||||
pf->ice_debugfs_pf_fwlog = debugfs_create_dir("fwlog",
|
||||
pf->ice_debugfs_pf);
|
||||
if (IS_ERR(pf->ice_debugfs_pf))
|
||||
if (IS_ERR(pf->ice_debugfs_pf_fwlog))
|
||||
goto err_create_module_files;
|
||||
|
||||
fw_modules_dir = debugfs_create_dir("modules",
|
||||
|
||||
Reference in New Issue
Block a user