Commit 42d0f71c authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller

octeontx2-af: Use GFP_ATOMIC under spin lock

The function nix_update_mce_list() is called from
nix_update_bcast_mce_list(), and a spin lock is held
here, so we should use GFP_ATOMIC instead.

Fixes: 4b05528e ("octeontx2-af: Update bcast list upon NIXLF alloc/free")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 899ecaed
...@@ -1294,7 +1294,7 @@ static int nix_update_mce_list(struct nix_mce_list *mce_list, ...@@ -1294,7 +1294,7 @@ static int nix_update_mce_list(struct nix_mce_list *mce_list,
return 0; return 0;
/* Add a new one to the list, at the tail */ /* Add a new one to the list, at the tail */
mce = kzalloc(sizeof(*mce), GFP_KERNEL); mce = kzalloc(sizeof(*mce), GFP_ATOMIC);
if (!mce) if (!mce)
return -ENOMEM; return -ENOMEM;
mce->idx = idx; mce->idx = idx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment