diff options
author | Saubhik Mukherjee <saubhik.mukherjee@gmail.com> | 2021-05-24 15:37:12 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-24 23:00:32 +0200 |
commit | a4dd4fc6105e54393d637450a11d4cddb5fabc4f (patch) | |
tree | 27225309b26e327b6b714fed294acac555f24a46 /net/hsr/hsr_forward.c | |
parent | Merge branch 'sja1105-fixes' (diff) | |
download | linux-a4dd4fc6105e54393d637450a11d4cddb5fabc4f.tar.xz linux-a4dd4fc6105e54393d637450a11d4cddb5fabc4f.zip |
net: appletalk: cops: Fix data race in cops_probe1
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>
Diffstat (limited to 'net/hsr/hsr_forward.c')
0 files changed, 0 insertions, 0 deletions