mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
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: 969f843946
("ionic: sync the filters in the work task")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Link: https://lore.kernel.org/r/20210903131856.GA25934@kili
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
9756e44fd4
commit
52a67fbf0c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue