compat-drivers: fix parameter dereference for drv_set_multicast_list()
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 28 Mar 2013 19:12:16 +0000 (20:12 +0100)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Fri, 29 Mar 2013 00:35:18 +0000 (17:35 -0700)
drv_set_multicast_list() does not take a pinter but the direct
parameter on kernel < 2.6.35.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
patches/collateral-evolutions/network/25-multicast-list_head.patch

index 602d5e76ca27051cf725d15919586baaffab6538..a20aa5472dc1cae591fcdbe154723ffa1f635fcf 100644 (file)
@@ -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);