diff options
author | Pavel Andrianov <[email protected]> | 2021-03-10 11:10:46 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-03-10 15:21:33 -0800 |
commit | 0571a753cb07982cc82f4a5115e0b321da89e1f3 (patch) | |
tree | f750240bc836f82885e9dbb96e2a3bcd0af8bb21 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | dd4fa1dae9f4847cc1fd78ca468ad69e16e5db3e (diff) |
net: pxa168_eth: Fix a potential data race in pxa168_eth_remove
pxa168_eth_remove() firstly calls unregister_netdev(),
then cancels a timeout work. unregister_netdev() shuts down a device
interface and removes it from the kernel tables. If the timeout occurs
in parallel, the timeout work (pxa168_eth_tx_timeout_task) performs stop
and open of the device. It may lead to an inconsistent state and memory
leaks.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Pavel Andrianov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions