The Mellanox regression group found and fixed a problem that could cause
memory
leaks in the bzcopy code.
Signed-off-by: Jim Mott <[EMAIL PROTECTED]>
---
Index: ofa_1_3_dev_kernel/drivers/infiniband/ulp/sdp/sdp_main.c
===================================================================
--- ofa_1_3_dev_kernel.orig/drivers/infiniband/ulp/sdp/sdp_main.c
2007-11-19 08:56:45.000000000 -0600
+++ ofa_1_3_dev_kernel/drivers/infiniband/ulp/sdp/sdp_main.c
2007-11-19 09:19:24.000000000 -0600
@@ -1248,8 +1248,10 @@
* fits into the frags array in the skb.
*/
size_goal = size_goal / PAGE_SIZE + 1;
- if (size_goal >= MAX_SKB_FRAGS)
+ if (size_goal >= MAX_SKB_FRAGS) {
+ kfree(bz);
return NULL;
+ }
addr = (unsigned long)base;
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general