aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorJohannes Berg <[email protected]>2011-11-08 12:28:33 +0100
committerJohn W. Linville <[email protected]>2011-11-09 14:35:55 -0500
commitf8d1ccf15568268c76f913b45ecdd33134387f1a (patch)
tree01f25eb79f2022441bde6235958f36562b4bf9b2 /tools/perf/util/scripting-engines/trace-event-python.c
parentcc438fccd5783c9f7b4c4858358ac897dcf8a58d (diff)
mac80211: fix NULL dereference in radiotap code
When receiving failed PLCP frames is enabled, there won't be a rate pointer when we add the radiotap header and thus the kernel will crash. Fix this by not assuming the rate pointer is always valid. It's still always valid for frames that have good PLCP though, and that is checked & enforced. This was broken by my commit fc88518916793af8ad6a02e05ff254d95c36d875 Author: Johannes Berg <[email protected]> Date: Fri Jul 30 13:23:12 2010 +0200 mac80211: don't check rates on PLCP error frames where I removed the check in this case but didn't take into account that the rate info would be used. Reported-by: Xiaokang Qin <[email protected]> Cc: [email protected] Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions