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)
commit21ff2929edc89397cc4c621d3c3f842994640acd
tree46f75007ed886061101d05e2acfd9901ffa3d3ec
parent884c06f4777c598ea7bf4fbc7557ff2fca066f63
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