aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_debugfs.c
diff options
context:
space:
mode:
authorMichal Swiatkowski <[email protected]>2025-06-24 09:26:36 +0000
committerTony Nguyen <[email protected]>2025-07-15 20:01:16 +0000
commitbedd0330a19b3a4448e67941732153ce04d3fb9b (patch)
tree162370ccc91af8c3feaf45a143e39b9ce6a48070 /drivers/net/ethernet/intel/ice/ice_debugfs.c
parentice: add NULL check in eswitch lag check (diff)
downloadkernel-bedd0330a19b3a4448e67941732153ce04d3fb9b.tar.gz
kernel-bedd0330a19b3a4448e67941732153ce04d3fb9b.zip
ice: check correct pointer in fwlog debugfs
pf->ice_debugfs_pf_fwlog should be checked for an error here. Fixes: 96a9a9341cda ("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]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_debugfs.c')
-rw-r--r--drivers/net/ethernet/intel/ice/ice_debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_debugfs.c b/drivers/net/ethernet/intel/ice/ice_debugfs.c
index 9fc0fd95a13d..cb71eca6a85b 100644
--- a/drivers/net/ethernet/intel/ice/ice_debugfs.c
+++ b/drivers/net/ethernet/intel/ice/ice_debugfs.c
@@ -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",