mac80211: fix memory leak
authorSudip Mukherjee <sudip@vectorindia.org>
Tue, 2 Feb 2016 07:51:14 +0000 (13:21 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jun 2020 06:12:15 +0000 (08:12 +0200)
commitbaf1ece29a36e349f81424dfddeac4c854ff3c40
tree17358457db8e0df59f5d0910505c8e1522ac6ffa
parentf64b2e49912ac953b318f6f3f043c22d68a70b49
mac80211: fix memory leak

commit ea32f065bd3e3e09f0bcb3042f1664caf6b3e233 upstream.

On error we jumped to the error label and returned the error code but we
missed releasing sinfo.

Fixes: 5fe74014172d ("mac80211: avoid excessive stack usage in sta_info")
Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/sta_info.c