mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 09:42:19 +03:00
nvethenret: use GFP_KERNEL instead of GFP_ATOMIC
Issue: For set_rx_mode() implementation, current design is creating
local list nodes with ATOMIC because this call in not in
Atomic context.
Fix: Use GFP_KERNEL flag to allocate memory for local list node.
Bug 200729431
Change-Id: I513ddce8a661ab6f465509791101e98c83bc8e96
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2527627
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
This commit is contained in:
committed by
Revanth Kumar Uppala
parent
3479a84bc7
commit
848c6a2e9a
@@ -75,7 +75,7 @@ static int ether_update_mac_addr(struct ether_priv_data *pdata,
|
||||
}
|
||||
}
|
||||
|
||||
pnode = kmalloc(sizeof(*pnode), GFP_ATOMIC);
|
||||
pnode = kmalloc(sizeof(*pnode), GFP_KERNEL);
|
||||
if (!pnode) {
|
||||
dev_err(pdata->dev, "kmalloc failed %s()\n", __func__);
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user