rndis_wlan: correct multicast_list handling V3
authorJiri Pirko <jpirko@redhat.com>
Thu, 4 Mar 2010 11:32:16 +0000 (03:32 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Mar 2010 11:32:16 +0000 (03:32 -0800)
commit12c3400a84742f8bb0e4edc822e9ccba58781e0c
tree0d4d98975822024b6d7414739b6a88f83b553da4
parent4c32531324b83672f100692354b680625bcd7fba
rndis_wlan: correct multicast_list handling V3

My previous patch (655ffee284dfcf9a24ac0343f3e5ee6db85b85c5) added locking in
a bad way. Because rndis_set_oid can sleep, there is need to prepare multicast
addresses into local buffer under netif_addr_lock first, then call
rndis_set_oid outside. This caused reorganizing of the whole function.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Reported-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/rndis_wlan.c