]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sparc: Use GFP_ATOMIC in ldc_alloc_exp_dring() as it can be called in softirq context
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Tue, 21 Apr 2015 14:30:41 +0000 (10:30 -0400)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Jul 2015 12:10:36 +0000 (14:10 +0200)
commit6b4086dc645491f3df0f5bc7b49cf9dccd827801
treed993ae3ffa3fd37344b5a57664901e722391ed8f
parentbee6cd85e93d34534a0908ba4ba7502194b998ca
sparc: Use GFP_ATOMIC in ldc_alloc_exp_dring() as it can be called in softirq context

commit 0edfad5959df7379c9e554fbe8ba264ae232d321 upstream.

Since it is possible for vnet_event_napi to end up doing
vnet_control_pkt_engine -> ... -> vnet_send_attr ->
vnet_port_alloc_tx_ring -> ldc_alloc_exp_dring -> kzalloc()
(i.e., in softirq context), kzalloc() should be called with
GFP_ATOMIC from ldc_alloc_exp_dring.

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.com>
arch/sparc/kernel/ldc.c