]> git.baikalelectronics.ru Git - kernel.git/commit
typhoon: fix a race in typhoon_do_get_stats
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 24 Aug 2010 04:18:13 +0000 (04:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Aug 2010 23:36:49 +0000 (16:36 -0700)
commit51c9448488cb55ee99ae43302bb82541f3740967
tree46f75007ed886061101d05e2acfd9901ffa3d3ec
parent039ca370ccedc82dbdc40aaf39f6151d2f178e4a
typhoon: fix a race in typhoon_do_get_stats

Its important to store 'final' values in counters,
not using them as temporary variables,
or this might break some SNMP applications.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: David Dillow <dave@thedillows.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/typhoon.c