Commit e95b7435 authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville

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: stable@kernel.org [2.6.32+]
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 8f1d2d2b
...@@ -193,7 +193,7 @@ TRACE_EVENT(iwlwifi_dev_tx, ...@@ -193,7 +193,7 @@ TRACE_EVENT(iwlwifi_dev_tx,
__entry->framelen = buf0_len + buf1_len; __entry->framelen = buf0_len + buf1_len;
memcpy(__get_dynamic_array(tfd), tfd, tfdlen); memcpy(__get_dynamic_array(tfd), tfd, tfdlen);
memcpy(__get_dynamic_array(buf0), buf0, buf0_len); memcpy(__get_dynamic_array(buf0), buf0, buf0_len);
memcpy(__get_dynamic_array(buf1), buf1, buf0_len); memcpy(__get_dynamic_array(buf1), buf1, buf1_len);
), ),
TP_printk("[%p] TX %.2x (%zu bytes)", TP_printk("[%p] TX %.2x (%zu bytes)",
__entry->priv, __entry->priv,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment