[rds-devel] [PATCH 1/2] net/rds: fix call to ip_dev_find()

Or Gerlitz ogerlitz at voltaire.com
Wed May 14 07:17:29 PDT 2008


add missing param for the call to ip_dev_find() to comply with the mainline kernel

Signed-off-by: Or Gerlitz <ogerlitz at voltaire.com>

Index: linux-2.6.26-rc2/net/rds/ib.c
===================================================================
--- linux-2.6.26-rc2.orig/net/rds/ib.c
+++ linux-2.6.26-rc2/net/rds/ib.c
@@ -161,7 +161,7 @@ static int rds_ib_laddr_check(__be32 add
 	struct net_device *dev;
 	int ret;

-	dev = ip_dev_find(addr);
+	dev = ip_dev_find(&init_net, addr);
 	if (dev && dev->type == ARPHRD_INFINIBAND) {
 		dev_put(dev);
 		ret = 0;



More information about the rds-devel mailing list