summaryrefslogtreecommitdiff
path: root/debugfs.c
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2026-04-13 22:25:44 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2026-04-13 22:25:44 +0000
commitc3e04a1cd3b64885db5238b60db0da610586d3ce (patch)
tree80f09673937235b0a795b17347ddc30d069d341f /debugfs.c
parent4c115eaec2fdbcd0c5fc614e0529fa68152501ef (diff)
Diffstat (limited to 'debugfs.c')
-rw-r--r--debugfs.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/debugfs.c b/debugfs.c
index 977f945b6e66..0c1138407838 100644
--- a/debugfs.c
+++ b/debugfs.c
@@ -707,7 +707,7 @@ static ssize_t ath11k_debugfs_dump_soc_dp_stats(struct file *file,
len += scnprintf(buf + len, size - len, "\nSOC TX STATS:\n");
len += scnprintf(buf + len, size - len, "\nTCL Ring Full Failures:\n");
- for (i = 0; i < ab->hw_params.max_tx_ring; i++)
+ for (i = 0; i < ab->hw_params.hal_params->num_tx_rings; i++)
len += scnprintf(buf + len, size - len, "ring%d: %u\n",
i, soc_stats->tx_err.desc_na[i]);
@@ -1193,8 +1193,7 @@ static int ath11k_debugfs_dbr_dbg_init(struct ath11k *ar, int dbr_id)
if (ar->debug.dbr_debug[dbr_id])
return 0;
- ar->debug.dbr_debug[dbr_id] = kzalloc(sizeof(*dbr_debug),
- GFP_KERNEL);
+ ar->debug.dbr_debug[dbr_id] = kzalloc_obj(*dbr_debug);
if (!ar->debug.dbr_debug[dbr_id])
return -ENOMEM;
@@ -1216,9 +1215,8 @@ static int ath11k_debugfs_dbr_dbg_init(struct ath11k *ar, int dbr_id)
dbr_debug->dbr_debug_enabled = true;
dbr_dbg_data->num_ring_debug_entries = ATH11K_DEBUG_DBR_ENTRIES_MAX;
dbr_dbg_data->dbr_debug_idx = 0;
- dbr_dbg_data->entries = kcalloc(ATH11K_DEBUG_DBR_ENTRIES_MAX,
- sizeof(struct ath11k_dbg_dbr_entry),
- GFP_KERNEL);
+ dbr_dbg_data->entries = kzalloc_objs(struct ath11k_dbg_dbr_entry,
+ ATH11K_DEBUG_DBR_ENTRIES_MAX);
if (!dbr_dbg_data->entries)
return -ENOMEM;