Skip to content

Commit e95b743

Browse files
jmberg-intellinvjw
authored andcommitted
iwlwifi: fix TX tracer
The TX tracing code copies with the wrong length, which will typically copy too little data. Fix this by using the correct length variable. Cc: [email protected] [2.6.32+] Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
1 parent 8f1d2d2 commit e95b743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/iwlwifi/iwl-devtrace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ TRACE_EVENT(iwlwifi_dev_tx,
193193
__entry->framelen = buf0_len + buf1_len;
194194
memcpy(__get_dynamic_array(tfd), tfd, tfdlen);
195195
memcpy(__get_dynamic_array(buf0), buf0, buf0_len);
196-
memcpy(__get_dynamic_array(buf1), buf1, buf0_len);
196+
memcpy(__get_dynamic_array(buf1), buf1, buf1_len);
197197
),
198198
TP_printk("[%p] TX %.2x (%zu bytes)",
199199
__entry->priv,

0 commit comments

Comments
 (0)