ice: check correct pointer in fwlog debugfs
Subsystems (3)
PATCH 1/1 ice: check correct pointer in fwlog debugfs
pf->ice_debugfs_pf_fwlog should be check for an error here.
--- 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
@@ -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
Dear Michal,
Thank you for the patch.
Am 24.06.25 um 11:26 schrieb Michal Swiatkowski:
Quoted 1 line
pf->ice_debugfs_pf_fwlogshould be check for an error here.
be check*ed*
Quoted 12 lines
Fixes 96a9a9341cda ("ice: configure FW logging")Reviewed-by Przemek Kitszel <[email protected]>Signed-off-by Michal Swiatkowski <[email protected]>--- 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
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
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_fwlogshould be check for an error here.Fixes 96a9a9341cda ("ice: configure FW logging")Reviewed-by Przemek Kitszel <[email protected]>Signed-off-by Michal Swiatkowski <[email protected]>---
drivers/net/ethernet/intel/ice/ice_debugfs.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)