]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea9cd463274999e96bf50065202e4990863de455
tree8497d59a2392a6034c1ce22d365e713fef60856f
parent4bf12803908cdbb6ea7528746f6dfbc0e3bc79de
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: a25be86ed800 ("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