[ofa-general] memory leak in cm.c?

Michael S. Tsirkin mst at dev.mellanox.co.il
Mon May 7 22:07:00 PDT 2007


Hi!
I applied the following patch to cm.c, and it crashed after
some duplicate reqs where detected. Does this indicate a
memory leak in cm?

---

diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c
index 842cd0b..3f95eae 100644
--- a/drivers/infiniband/core/cm.c
+++ b/drivers/infiniband/core/cm.c
@@ -790,6 +790,7 @@ retest:
 		cm_free_work(work);
 	kfree(cm_id_priv->compare_data);
 	kfree(cm_id_priv->private_data);
+	BUG_ON(cm_id_priv->timewait_info);
 	kfree(cm_id_priv);
 }
 

-- 
MST



More information about the general mailing list