Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c26d458 authored by Eliad Peller's avatar Eliad Peller Committed by Johannes Berg
Browse files

cfg80211: fix mic_failure tracing



tsc can be NULL (mac80211 currently always passes NULL),
resulting in NULL-dereference. check before copying it.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarEliad Peller <eliadx.peller@intel.com>
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 08b99399
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2094,6 +2094,7 @@ TRACE_EVENT(cfg80211_michael_mic_failure,
		MAC_ASSIGN(addr, addr);
		__entry->key_type = key_type;
		__entry->key_id = key_id;
		if (tsc)
			memcpy(__entry->tsc, tsc, 6);
	),
	TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT ", key type: %d, key id: %d, tsc: %pm",