Message ID | 20200430124110.2964-1-skalluru@marvell.com |
---|---|
State | New |
Headers | show |
Series | [net-next,1/1] qedr: Avoid DB recover entry deletion when device is not active. | expand |
diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c index a5bd3ad..7e10f3b 100644 --- a/drivers/infiniband/hw/qedr/verbs.c +++ b/drivers/infiniband/hw/qedr/verbs.c @@ -672,6 +672,12 @@ static void qedr_db_recovery_del(struct qedr_dev *dev, void __iomem *db_addr, void *db_data) { + if (QEDR_DEAD(dev)) { + DP_VERBOSE(dev, QEDR_MSG_FAIL, + "avoiding db rec since device is dead\n"); + return 0; + } + if (!db_data) { DP_DEBUG(dev, QEDR_MSG_INIT, "avoiding db rec since old lib\n"); return;