[rds-devel] [PATCH 1/2] net/rds: fix call to ip_dev_find()
Vladimir Sokolovsky
vlad at dev.mellanox.co.il
Tue May 20 08:30:45 PDT 2008
Or Gerlitz wrote:
> 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;
>
> _______________________________________________
> rds-devel mailing list
> rds-devel at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/rds-devel
>
Aplpied to OFED-1.4 kernel git tree:
git://git.openfabrics.org/ofed_1_4/linux-2.6.git ofed_kernel
Regards,
Vladimir
More information about the rds-devel
mailing list