]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix ethtool stats for non-station interfaces
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 8 Jul 2013 08:43:31 +0000 (10:43 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 16 Jul 2013 06:55:57 +0000 (09:55 +0300)
commit7daae8af9c2b1e6ed69a788abe9ec63b50bd29ba
tree684b6ea08bd952005d76debede813d71847d4cfa
parent4610fa7b3db56c0bdbf114ea61840122e59940b1
mac80211: fix ethtool stats for non-station interfaces

As reported in https://bugzilla.kernel.org/show_bug.cgi?id=60514,
the station loop never initialises 'sinfo' and therefore adds up
a stack values, leaking stack information (the number of times it
adds values is easily obtained another way.)

Fix this by initialising the sinfo for each station to add.

Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
net/mac80211/cfg.c