diff options
| author | Saubhik Mukherjee <saubhik.mukherjee@gmail.com> | 2021-05-24 19:07:12 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-16 11:34:52 +0200 |
| commit | ff4aab297538058ad25783edc8e9ac2e49231d25 (patch) | |
| tree | bc43a81445ae3010c39dffe3eba7c6604b950df5 /tools/perf/scripts/python | |
| parent | 13b036fe4eaa8ea169803fb4794aa9b2031a19dc (diff) | |
net: appletalk: cops: Fix data race in cops_probe1
[ Upstream commit a4dd4fc6105e54393d637450a11d4cddb5fabc4f ]
In cops_probe1(), there is a write to dev->base_addr after requesting an
interrupt line and registering the interrupt handler cops_interrupt().
The handler might be called in parallel to handle an interrupt.
cops_interrupt() tries to read dev->base_addr leading to a potential
data race. So write to dev->base_addr before calling request_irq().
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Saubhik Mukherjee <saubhik.mukherjee@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
