Skip to contentSkip to conversation

ice: check correct pointer in fwlog debugfs

PATCH In review Michal Swiatkowski 3 participants 3 messages Jun 24, 2025 – Jul 8, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ice: check correct pointer in fwlog debugfs

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

Fixes 96a9a9341cda ("ice: configure FW logging")
---
 drivers/net/ethernet/intel/ice/ice_debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_debugfs.c +1 -1
index 9fc0fd95a13d..cb71eca6a85b 100644
@@ -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",
Signature · 1 line
2.49.0
Reviewed-by on v1 1/1
#1 lore raw

Dear Michal,

Thank you for the patch.

Am 24.06.25 um 11:26 schrieb Michal Swiatkowski:

Quoted 1 line

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

be check*ed*

Quoted 12 lines
Fixes 96a9a9341cda ("ice: configure FW logging")
---
  drivers/net/ethernet/intel/ice/ice_debugfs.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_debugfs.c +0 -0
index 9fc0fd95a13d..cb71eca6a85b 100644

drivers/net/ethernet/intel/ice/ice_debugfs.c void ice_debugfs_fwlog_init(struct ice_pf *pf) · line 612

Quoted 8 lines
drivers/net/ethernet/intel/ice/ice_debugfs.c +1 -1
@@ -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",

With the above fixed:

Kind regards,

Paul

Tested-by on v1 1/1
#2 lore raw
In reply to Michal Swiatkowski
Quoted 5 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Michal Swiatkowski
Sent: 24 June 2025 14:57
To: [email protected]
Cc: [email protected]; Kitszel, Przemyslaw <[email protected]>; Michal Swiatkowski <[email protected]>

Subject: [Intel-wired-lan] [PATCH iwl-net v1] ice: check correct pointer in fwlog debugfs

Quoted 10 lines

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

Fixes 96a9a9341cda ("ice: configure FW logging")

---
drivers/net/ethernet/intel/ice/ice_debugfs.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)