mac80211: fix memory leak
authorSudip Mukherjee <sudip@vectorindia.org>
Tue, 2 Feb 2016 07:51:14 +0000 (13:21 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 24 Feb 2016 08:04:32 +0000 (09:04 +0100)
commitea32f065bd3e3e09f0bcb3042f1664caf6b3e233
tree91b0137c0ab2303e73f7afb96cd0019a06c7a554
parent23665aaf9170ae6328cc4f68250c529a628af2ab
mac80211: fix memory leak

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>
net/mac80211/sta_info.c