aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorBrian Norris <[email protected]>2017-03-28 16:59:32 -0700
committerKalle Valo <[email protected]>2017-04-05 15:44:03 +0300
commitce8fad9a1f09009ec3918a99685d9e3176f50ce3 (patch)
treeb907bf425f6e9cebf17c1c17f165bb8e2dd21b39 /tools/perf/scripts/python/event_analyzing_sample.py
parent78b9ccb81377ba908b2c18daf6e1a7beddc281e3 (diff)
mwifiex: fix use-after-free for FW reinit errors
If we fail to reinit the FW when resetting the device (in the synchronous version of mwifiex_init_hw_fw() -> mwifiex_fw_dpc()), mwifiex_fw_dpc() will tear down the interface and free up the adapter. But we don't actually check for all failure cases of mwifiex_fw_dpc(), so some of them fall through and dereference adapter->fw_done with a freed adapter, causing a use-after-free bug. In any case, mwifiex_fw_dpc() will always signal FW completion -- in the error OR success case -- so at best, this was repeat work. Let's not do it. Signed-off-by: Brian Norris <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions