cfg80211: fix mic_failure tracing
authorEliad Peller <eliad@wizery.com>
Thu, 17 Jul 2014 12:00:56 +0000 (15:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Aug 2014 21:30:25 +0000 (14:30 -0700)
commit201c26e77bfc4064afc6a630fc336a825047be7b
tree11f4e091bbabbd260e196eaf8ec433ae3f0dd88d
parentc3056d9f28d86c4f0091e7843d38e4584b51128b
cfg80211: fix mic_failure tracing

commit 8c26d458394be44e135d1c6bd4557e1c4e1a0535 upstream.

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

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/trace.h