]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Fix error introduced in netdev_mc_count() changes.
authorDavid S. Miller <davem@davemloft.net>
Mon, 15 Feb 2010 06:49:52 +0000 (22:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Feb 2010 06:49:52 +0000 (22:49 -0800)
commitc3522213bcd780f46c1979e4acd4082c3f24c6e5
treebdde21453c29ebd613eae2a3e41bdb9bede1110d
parentae9fb68148b58f11b303f22a2abada0c22b67d29
mac80211: Fix error introduced in netdev_mc_count() changes.

Commit 08fc26af55e15b2ff445edb9a9dd54d1efafe0a5
("net: use netdev_mc_count and netdev_mc_empty when appropriate")
added this hunk to net/mac80211/iface.c:

  __dev_addr_unsync(&local->mc_list, &local->mc_count,
-   &dev->mc_list, &dev->mc_count);
+   &dev->mc_list, dev->mc_count);

which is definitely not correct, introduced a warning (reported
by Stephen Rothwell):

net/mac80211/iface.c: In function 'ieee80211_stop':
net/mac80211/iface.c:416: warning: passing argument 4 of '__dev_addr_unsync' makes pointer from integer without a cast
include/linux/netdevice.h:1967: note: expected 'int *' but argument is of type 'int'

and is thus reverted here.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/mac80211/iface.c