提交 52a67fbf 编写于 作者: D Dan Carpenter 提交者: Jakub Kicinski

ionic: fix a sleeping in atomic bug

This code is holding spin_lock_bh(&lif->rx_filters.lock); so the
allocation needs to be atomic.

Fixes: 969f8439 ("ionic: sync the filters in the work task")
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NShannon Nelson <snelson@pensando.io>
Link: https://lore.kernel.org/r/20210903131856.GA25934@kiliSigned-off-by: NJakub Kicinski <kuba@kernel.org>
上级 9756e44f
......@@ -318,7 +318,7 @@ void ionic_rx_filter_sync(struct ionic_lif *lif)
if (f->state == IONIC_FILTER_STATE_NEW ||
f->state == IONIC_FILTER_STATE_OLD) {
sync_item = devm_kzalloc(dev, sizeof(*sync_item),
GFP_KERNEL);
GFP_ATOMIC);
if (!sync_item)
goto loop_out;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册