[openib-general] [PATCH]fix memory leak associated with agent_send_handler() in gen2/trunk
Shirley Ma
mashirle at us.ibm.com
Thu Nov 4 12:44:03 PST 2004
Please review this patch.
diff -urN infiniband/core/agent.c infiniband.patch/core/agent.c
--- infiniband/core/agent.c 2004-11-04 10:35:20.000000000 -0800
+++ infiniband.patch/core/agent.c 2004-11-04 12:35:55.916027072 -0800
@@ -480,6 +480,7 @@
/* Release allocated memory */
kfree(agent_send_wr->mad);
+ kfree(agent_send_wr);
}
int ib_agent_port_open(struct ib_device *device, int port_num,
--
Thanks
Shirley Ma
IBM Linux Technology Center
More information about the general
mailing list