android_kernel_xiaomi_sm8350/core/hdd
Dustin Brown 5ec6b5598e qcacld-3.0: Stop bandwidth timer before adapter cleanup
There is race condition between the bus bandwidth work and cleaning up
an adapter. Under some conditions, it is possible for the bus bandwidth
work to access a paritally destroyed adapter, leading to a
use-after-free. To prevent the race condition, use the following
sequence:
    1) Stop the bandwidth timer
    2) Flush pending bandwidth work
    3) Cleanup the adapter
    4) Restart the bandwidth timer, if needed

Change-Id: I7166e75e65433d2dcb818ff8b41fe959c510a2e9
CRs-Fixed: 2025184
2017-04-03 15:25:26 -07:00
..
inc qcacld-3.0: Stop bandwidth timer before adapter cleanup 2017-04-03 15:25:26 -07:00
src qcacld-3.0: Stop bandwidth timer before adapter cleanup 2017-04-03 15:25:26 -07:00