aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-10-25 01:42:26 +0000
committerDavid S. Miller <davem@davemloft.net>2018-10-25 11:36:29 -0700
commit42d0f71c9b5fd48861d61cfc05c9e001f847c9d5 (patch)
tree34309cbeb0f438f951c1a9416fcc5190adb6dcc9 /drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
parentnet: ethernet: cadence: fix socket buffer corruption problem (diff)
downloadlinux-dev-42d0f71c9b5fd48861d61cfc05c9e001f847c9d5.tar.xz
linux-dev-42d0f71c9b5fd48861d61cfc05c9e001f847c9d5.zip
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: 4b05528ebf0c ("octeontx2-af: Update bcast list upon NIXLF alloc/free") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
index a4eac3b9ee72..a5ab7eff2301 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
@@ -1294,7 +1294,7 @@ static int nix_update_mce_list(struct nix_mce_list *mce_list,
return 0;
/* Add a new one to the list, at the tail */
- mce = kzalloc(sizeof(*mce), GFP_KERNEL);
+ mce = kzalloc(sizeof(*mce), GFP_ATOMIC);
if (!mce)
return -ENOMEM;
mce->idx = idx;