OSDN Git Service

ionic: fix a sleeping in atomic bug
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 3 Sep 2021 13:18:56 +0000 (16:18 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 3 Sep 2021 23:16:51 +0000 (16:16 -0700)
commit52a67fbf0cffcc1a0d1272cf0522cb193a0d0bd6
tree8497d59a2392a6034c1ce22d365e713fef60856f
parent9756e44fd4d283ebcc94df353642f322428b73de
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: 969f84394604 ("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>
drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c