net: pxa168_eth: Fix a potential data race in pxa168_eth_remove
authorPavel Machek <pavel@denx.de>
Fri, 18 Jun 2021 09:35:26 +0000 (11:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jun 2021 19:08:39 +0000 (12:08 -0700)
commitbd70957438f0cc4879cbdff8bbc8614bc1cddf49
treeca715b900826c5abf0320f4416b819c8626fadbf
parent96a19319921ceb4b2f4c49d1b9bf9de1161e30ca
net: pxa168_eth: Fix a potential data race in pxa168_eth_remove

Commit 0571a753cb07 cancelled delayed work too late, keeping small
race. Cancel work sooner to close it completely.

Signed-off-by: Pavel Machek (CIP) <pavel@denx.de>
Fixes: 0571a753cb07 ("net: pxa168_eth: Fix a potential data race in pxa168_eth_remove")
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/pxa168_eth.c