]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: lantiq: Add locking for TX DMA channel
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 22 Sep 2020 21:41:12 +0000 (23:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Nov 2020 09:14:12 +0000 (10:14 +0100)
commitcd61f14592df1054eda1dfcee6dafd248d07c1b8
tree4fd1baad472728f26b609473da6411d124b336c0
parent8cad37eb129f9374bfcc5552a84a28db4e9daccc
net: lantiq: Add locking for TX DMA channel

commit f9317ae5523f99999fb54c513ebabbb2bc887ddf upstream.

The TX DMA channel data is accessed by the xrx200_start_xmit() and the
xrx200_tx_housekeeping() function from different threads. Make sure the
accesses are synchronized by acquiring the netif_tx_lock() in the
xrx200_tx_housekeeping() function too. This lock is acquired by the
kernel before calling xrx200_start_xmit().

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/lantiq_xrx200.c