summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/coredump.c
diff options
context:
space:
mode:
authorKalle Valo2019-05-27 14:15:29 +0200
committerKalle Valo2019-05-27 14:15:29 +0200
commit889ca18093423af7bf224416fe7548a7e13e82fc (patch)
treed762982fd593bb797d3df49a462276c1fc37c161 /drivers/net/wireless/ath/ath10k/coredump.c
parentcxgb4: Make t4_get_tp_e2c_map static (diff)
parentath10k: Check tx_stats before use it (diff)
downloadkernel-qcow2-linux-889ca18093423af7bf224416fe7548a7e13e82fc.tar.gz
kernel-qcow2-linux-889ca18093423af7bf224416fe7548a7e13e82fc.tar.xz
kernel-qcow2-linux-889ca18093423af7bf224416fe7548a7e13e82fc.zip
Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
ath.git patches for 5.3. Major changes: ath10k * enable SDIO support, first one being QCA6174 hw3.2
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/coredump.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/coredump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath10k/coredump.c b/drivers/net/wireless/ath/ath10k/coredump.c
index 45a355fb62b9..b6d2932383cf 100644
--- a/drivers/net/wireless/ath/ath10k/coredump.c
+++ b/drivers/net/wireless/ath/ath10k/coredump.c
@@ -1192,8 +1192,8 @@ static struct ath10k_dump_file_data *ath10k_coredump_build(struct ath10k *ar)
if (test_bit(ATH10K_FW_CRASH_DUMP_CE_DATA, &ath10k_coredump_mask)) {
dump_tlv = (struct ath10k_tlv_dump_data *)(buf + sofar);
dump_tlv->type = cpu_to_le32(ATH10K_FW_CRASH_DUMP_CE_DATA);
- dump_tlv->tlv_len = cpu_to_le32(sizeof(*ce_hdr) +
- CE_COUNT * sizeof(ce_hdr->entries[0]));
+ dump_tlv->tlv_len = cpu_to_le32(struct_size(ce_hdr, entries,
+ CE_COUNT));
ce_hdr = (struct ath10k_ce_crash_hdr *)(dump_tlv->tlv_data);
ce_hdr->ce_count = cpu_to_le32(CE_COUNT);
memset(ce_hdr->reserved, 0, sizeof(ce_hdr->reserved));