iwlwifi: fix TX tracer
authorJohannes Berg <johannes.berg@intel.com>
Fri, 6 Aug 2010 14:00:48 +0000 (16:00 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 6 Aug 2010 17:53:58 +0000 (13:53 -0400)
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: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-devtrace.h

index ae7319bb3a9973f675e409d8e7c64968069adbcd..4cf864c664ee739a7de42be38ed75a338780dc76 100644 (file)
@@ -193,7 +193,7 @@ TRACE_EVENT(iwlwifi_dev_tx,
                __entry->framelen = buf0_len + buf1_len;
                memcpy(__get_dynamic_array(tfd), tfd, tfdlen);
                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)",
                  __entry->priv,