Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 967ccdcf authored by Sowmini Varadhan's avatar Sowmini Varadhan Committed by Sasha Levin
Browse files

sparc: Use GFP_ATOMIC in ldc_alloc_exp_dring() as it can be called in softirq context



[ Upstream commit 671d773297969bebb1732e1cdc1ec03aa53c6be2 ]

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: default avatarSowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 90606a14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment