sundance: get_stats proper locking
authorEric Dumazet <eric.dumazet@gmail.com>
Sat, 9 Oct 2010 02:17:01 +0000 (02:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Oct 2010 16:22:54 +0000 (09:22 -0700)
commit7b738b55b2ec0e95a5030037c45b3c312e385789
tree344ce2da410f2a9b37bc73511bce8cf16fa5dcd9
parent2259dca36a2f0226596ea37132a46338fcff6722
sundance: get_stats proper locking

sundance get_stats() should not be run concurrently, add a lock to avoid
potential losses.

Note: Remove unused rx_lock field

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sundance.c