]> git.ipfire.org Git - people/ms/linux.git/commit
cfg80211: fix WoWLAN wakeup tracing
authorJohannes Berg <johannes.berg@intel.com>
Mon, 29 Apr 2013 10:09:14 +0000 (12:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Jun 2013 19:52:23 +0000 (12:52 -0700)
commitb380790737a4c11e034ddeb56832b2cac35af6f0
tree138923993957afcf6798f933ef2ad668b2aa80b6
parentfb263c4b7d13f6782b257d753ccb93363dc583cc
cfg80211: fix WoWLAN wakeup tracing

commit a92eecbbeaf01ea2267751569dd3301248513915 upstream.

If the device reports a non-wireless wakeup reason, the
tracing code crashes trying to dereference a NULL pointer.
Fix this by checking the pointer on all accesses and also
add a non_wireless tag to the event.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/trace.h