]> git.baikalelectronics.ru Git - kernel.git/commit
net: sgi: use GFP_ATOMIC under spin lock
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 16 Feb 2019 01:48:09 +0000 (01:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Feb 2019 23:51:46 +0000 (15:51 -0800)
commit51e26150bf0eef28a9fde9e6649aba9a9cd12c3f
tree182b39e81213c016cabdd03e913de1dbd8cfe220
parent224d06914b2a7446eb9991bc9db2171ba794128b
net: sgi: use GFP_ATOMIC under spin lock

The function meth_init_tx_ring() is called from meth_tx_timeout(),
in which spin_lock is held, so we should use GFP_ATOMIC instead.

Fixes: 85ec22c78eb3 ("meth: pass struct device to DMA API functions")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sgi/meth.c