]> 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)
commit5ba94b7ed1f530b00cd385c76b93007760428d37
tree182b39e81213c016cabdd03e913de1dbd8cfe220
parenta879486576c4764fdc6ae07d8a36d07176facd52
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: 7f2edf4a93b7 ("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