brcmfmac: fix memory leak in brcmf_fill_bss_param
authorRafał Miłecki <rafal@milecki.pl>
Wed, 21 Sep 2016 06:23:24 +0000 (08:23 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 26 Sep 2016 17:49:10 +0000 (20:49 +0300)
commit23e9c128adb2038c27a424a5f91136e7fa3e0dc6
treee672b6031f375b0fcf9cba07e1e8135f8ef962c7
parentb42fbed6b8a5942e9f76ec8c7f9c9fd798a2d3af
brcmfmac: fix memory leak in brcmf_fill_bss_param

This function is called from get_station callback which means that every
time user space was getting/dumping station(s) we were leaking 2 KiB.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Fixes: 1f0dc59a6de ("brcmfmac: rework .get_station() callback")
Cc: stable@vger.kernel.org # 4.2+
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c