[ewg] [PATCH 7/7] Backport patches for rdma cm patches

David J. Wilder dwilder at us.ibm.com
Fri Dec 11 14:48:27 PST 2009


Backport patch for ip_check_addr() for kernels v2.6.22/23/24
Patch name: core_0000_w2_6_24_ip_check_addr.patch
This patch should be placed in the following backports directories:
2.6.22
2.6.23
2.6.24

Signed-of-by: David Wilder <dwilder at us.ibm.com>
---
diff -Naurp ofa_kernel.orig/drivers/infiniband/core/addr.c ofa_kernel/drivers/infiniband/core/addr.c
--- ofa_kernel.orig/drivers/infiniband/core/addr.c	2009-12-07 15:42:33.000000000 -0600
+++ ofa_kernel/drivers/infiniband/core/addr.c	2009-12-07 15:53:18.000000000 -0600
@@ -130,8 +130,7 @@ int rdma_translate_ip(struct sockaddr *a
 	case AF_INET6:
 		read_lock(&dev_base_lock);
 		for_each_netdev(&init_net, dev) {
-			if (ipv6_chk_addr(&init_net,
-					  &((struct sockaddr_in6 *) addr)->sin6_addr,
+			if (ipv6_chk_addr(&((struct sockaddr_in6 *) addr)->sin6_addr,
 					  dev, 1)) {
 				ret = rdma_copy_addr(dev_addr, dev, NULL);
 				break;





More information about the ewg mailing list