From: Hauke Mehrtens Date: Thu, 28 Mar 2013 19:12:16 +0000 (+0100) Subject: compat-drivers: fix parameter dereference for drv_set_multicast_list() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=153aad4a6736e56f85c1d4c5e794c1682a062aa4;p=openwrt%2Fstaging%2Fblogic.git compat-drivers: fix parameter dereference for drv_set_multicast_list() drv_set_multicast_list() does not take a pinter but the direct parameter on kernel < 2.6.35. Signed-off-by: Hauke Mehrtens Signed-off-by: Luis R. Rodriguez --- diff --git a/patches/collateral-evolutions/network/25-multicast-list_head.patch b/patches/collateral-evolutions/network/25-multicast-list_head.patch index 602d5e76ca27..a20aa5472dc1 100644 --- a/patches/collateral-evolutions/network/25-multicast-list_head.patch +++ b/patches/collateral-evolutions/network/25-multicast-list_head.patch @@ -792,8 +792,8 @@ This also backport commit 2f787b0b76bf5de2eaa3ca3a29d89123ae03c856 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) drv_set_multicast_list(local, sdata, &dev->mc); +#else -+ drv_set_multicast_list(local, sdata, &dev->mc_count, -+ &dev->mc_list); ++ drv_set_multicast_list(local, sdata, dev->mc_count, ++ dev->mc_list); +#endif spin_lock_bh(&local->filter_lock);