Just log a warning.

Signed-off-by: Steve Wise <sw...@opengridcomputing.com>
Cc: sta...@vger.kernel.org
---

 drivers/infiniband/hw/cxgb4/cm.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c
index 8f43143..3d0e40a 100644
--- a/drivers/infiniband/hw/cxgb4/cm.c
+++ b/drivers/infiniband/hw/cxgb4/cm.c
@@ -1362,7 +1362,10 @@ static int abort_rpl(struct c4iw_dev *dev, struct 
sk_buff *skb)
 
        ep = lookup_tid(t, tid);
        PDBG("%s ep %p tid %u\n", __func__, ep, ep->hwtid);
-       BUG_ON(!ep);
+       if (!ep) {
+               printk(KERN_WARNING MOD "Abort rpl to freed endpoint\n");
+               return 0;
+       }
        mutex_lock(&ep->com.mutex);
        switch (ep->com.state) {
        case ABORTING:

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to