Commit bedd0330 authored by Michal Swiatkowski's avatar Michal Swiatkowski Committed by Tony Nguyen
Browse files

ice: check correct pointer in fwlog debugfs



pf->ice_debugfs_pf_fwlog should be checked for an error here.

Fixes: 96a9a934 ("ice: configure FW logging")
Reviewed-by: default avatarPrzemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: default avatarMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: default avatarPaul Menzel <pmenzel@molgen.mpg.de>
Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at Intel)
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent 3ce58b01
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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",