https://github.com/torvalds/linux
Revision 4543fbefe6e06a9e40d9f2b28d688393a299f079 authored by Vlad Yasevich on 02 April 2013, 21:10:07 UTC, committed by David S. Miller on 05 April 2013, 04:18:46 UTC
A few drivers use dev_uc_sync/unsync to synchronize the
address lists from master down to slave/lower devices.  In
some cases (bond/team) a single address list is synched down
to multiple devices.  At the time of unsync, we have a leak
in these lower devices, because "synced" is treated as a
boolean and the address will not be unsynced for anything after
the first device/call.

Treat "synced" as a count (same as refcount) and allow all
unsync calls to work.

Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent e2409d8
History
Tip revision: 4543fbefe6e06a9e40d9f2b28d688393a299f079 authored by Vlad Yasevich on 02 April 2013, 21:10:07 UTC
net: count hw_addr syncs so that unsync works properly.
Tip revision: 4543fbe
File Mode Size
Makefile -rw-r--r-- 394 bytes
compat.c -rw-r--r-- 18.5 KB
compat_mq.c -rw-r--r-- 4.1 KB
ipc_sysctl.c -rw-r--r-- 6.9 KB
ipcns_notifier.c -rw-r--r-- 2.2 KB
mq_sysctl.c -rw-r--r-- 2.7 KB
mqueue.c -rw-r--r-- 35.3 KB
msg.c -rw-r--r-- 22.7 KB
msgutil.c -rw-r--r-- 3.5 KB
namespace.c -rw-r--r-- 4.6 KB
sem.c -rw-r--r-- 42.3 KB
shm.c -rw-r--r-- 29.9 KB
syscall.c -rw-r--r-- 2.3 KB
util.c -rw-r--r-- 23.1 KB
util.h -rw-r--r-- 5.4 KB

back to top