Files
i2som-imx-linux/net
Anders Roxell 10db6b5653 batman-adv: fix warning in function batadv_v_elp_get_throughput
[ Upstream commit ca8c3b922e ]

When CONFIG_CFG80211 isn't enabled the compiler correcly warns about
'sinfo.pertid' may be unused. It can also happen for other error
conditions that it not warn about.

net/batman-adv/bat_v_elp.c: In function ‘batadv_v_elp_get_throughput.isra.0’:
include/net/cfg80211.h:6370:13: warning: ‘sinfo.pertid’ may be used
 uninitialized in this function [-Wmaybe-uninitialized]
  kfree(sinfo->pertid);
        ~~~~~^~~~~~~~

Rework so that we only release '&sinfo' if cfg80211_get_station returns
zero.

Fixes: 7d652669b6 ("batman-adv: release station info tidstats")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org>
2019-05-08 07:22:48 +02:00
..
2019-05-05 14:43:39 +02:00
2019-02-21 16:23:56 -08:00
2019-05-02 10:02:54 +02:00
2019-05-05 14:43:38 +02:00
2019-03-19 13:10:53 +01:00
2019-05-04 09:21:13 +02:00