[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230628170050.21290-1-shannon.nelson@amd.com>
Date: Wed, 28 Jun 2023 10:00:50 -0700
From: Shannon Nelson <shannon.nelson@....com>
To: <netdev@...r.kernel.org>, <davem@...emloft.net>, <kuba@...nel.org>
CC: <brett.creeley@....com>, <drivers@...sando.io>,
<nitya.sunkad@....com>, Shannon Nelson <shannon.nelson@....com>
Subject: [PATCH net] ionic: remove WARN_ON to prevent panic_on_warn
From: Nitya Sunkad <nitya.sunkad@....com>
Remove instances of WARN_ON to prevent problematic panic_on_warn use
resulting in kernel panics.
Fixes: 77ceb68e29cc ("ionic: Add notifyq support")
Signed-off-by: Nitya Sunkad <nitya.sunkad@....com>
Signed-off-by: Shannon Nelson <shannon.nelson@....com>
---
drivers/net/ethernet/pensando/ionic/ionic_lif.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_lif.c b/drivers/net/ethernet/pensando/ionic/ionic_lif.c
index 7c20a44e549b..d401d86f1f7a 100644
--- a/drivers/net/ethernet/pensando/ionic/ionic_lif.c
+++ b/drivers/net/ethernet/pensando/ionic/ionic_lif.c
@@ -475,7 +475,9 @@ static void ionic_qcqs_free(struct ionic_lif *lif)
static void ionic_link_qcq_interrupts(struct ionic_qcq *src_qcq,
struct ionic_qcq *n_qcq)
{
- if (WARN_ON(n_qcq->flags & IONIC_QCQ_F_INTR)) {
+ if (n_qcq->flags & IONIC_QCQ_F_INTR) {
+ dev_warn(n_qcq->q.dev, "%s: n_qcq->flags and IONIC_QCQ_F_INTR set\n",
+ __func__);
ionic_intr_free(n_qcq->cq.lif->ionic, n_qcq->intr.index);
n_qcq->flags &= ~IONIC_QCQ_F_INTR;
}
--
2.17.1
Powered by blists - more mailing lists