提交 cc1674ee 编写于 作者: J Julia Cartwright 提交者: David S. Miller

net: macb: change GFP_ATOMIC to GFP_KERNEL

Now that the rx_fs_lock is no longer held across allocation, it's safe
to use GFP_KERNEL for allocating new entries.

This reverts commit 81da3bf6 ("net: macb: change GFP_KERNEL to
GFP_ATOMIC").

Cc: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: NJulia Cartwright <julia@ni.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 7038cdb7
...@@ -2800,7 +2800,7 @@ static int gem_add_flow_filter(struct net_device *netdev, ...@@ -2800,7 +2800,7 @@ static int gem_add_flow_filter(struct net_device *netdev,
int ret = -EINVAL; int ret = -EINVAL;
bool added = false; bool added = false;
newfs = kmalloc(sizeof(*newfs), GFP_ATOMIC); newfs = kmalloc(sizeof(*newfs), GFP_KERNEL);
if (newfs == NULL) if (newfs == NULL)
return -ENOMEM; return -ENOMEM;
memcpy(&newfs->fs, fs, sizeof(newfs->fs)); memcpy(&newfs->fs, fs, sizeof(newfs->fs));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册