linux-stable/drivers/net/appletalk
Saubhik Mukherjee 1ca867fb12 net: appletalk: cops: Fix data race in cops_probe1
[ Upstream commit a4dd4fc610 ]

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>
2021-06-16 11:53:01 +02:00
..
cops.c
cops.h
cops_ffdrv.h
cops_ltdrv.h
ipddp.c
ipddp.h
Kconfig
ltpc.c
ltpc.h
Makefile