[openib-general] [PATCH]memory leak in ipoib_ib_post_receive()

Shirley Ma mashirle at us.ibm.com
Tue Feb 8 13:45:12 PST 2005


Here is the patch.

diff 
-urN /home/mshirley/iba/gen2/trunk/src/linux-kernel/infiniband/ulp/ipoib/ipoib_ib.c 
infiniband-patch/ulp/ipoib/ipoib_ib.c
--- /home/mshirley/iba/gen2/trunk/src/linux-kernel/infiniband/ulp/ipoib/ipoib_ib.c 
2005-02-04 16:05:13.000000000 -0800
+++ infiniband-patch/ulp/ipoib/ipoib_ib.c 2005-02-08 11:46:18.516256344 -0800
@@ -137,6 +137,7 @@
  if (ret) {
   ipoib_warn(priv, "ipoib_ib_receive failed for buf %d (%d)\n",
       id, ret);
+  dev_kfree_skb_any(skb);
   priv->rx_ring[id].skb = NULL;
  }
 
-- 
Thanks
Shirley Ma
IBM Linux Technology Center



More information about the general mailing list