]> git.karo-electronics.de Git - linux-beck.git/commit
ath10k: add extra check for frame tracing
authorMichal Kazior <michal.kazior@tieto.com>
Fri, 10 Apr 2015 13:02:28 +0000 (13:02 +0000)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 17 Apr 2015 06:33:48 +0000 (09:33 +0300)
commit36d8230b7d4fcd6f1a0c98b579d229bc919fa1fb
tree708631719167d95de0a0c8c9e594086cbcf3e860
parentd9585a92c79bb479040ab5ceff61d3f2b6864357
ath10k: add extra check for frame tracing

Frames are logged via tracing in two slices:
header and payload, separately. This is done for
performance reasons when one wants to, e.g.
analyse metadata only of frames only.

If for some reason device delivered a frame buffer
which was sized below what 802.11 header implied
tracing logic would blow doing an invalid memory
accesses.

I've hit this problem when running IBSS on QCA988X
with 999.999.0.636 and tracing at the same time.

Fixes: 5ce8e7fdcc7a ("ath10k: handle ieee80211 header and payload tracing separately")
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/trace.h