commit | 8bf6adb988c6843f0e58d2b210526cf947a8a746 | [log] [tgz] |
---|---|---|
author | Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> | Mon Mar 17 15:34:17 2014 +0200 |
committer | John W. Linville <linville@tuxdriver.com> | Mon Mar 17 13:44:18 2014 -0400 |
tree | 911326c6ad96a61015c909dc7063847e3def2f4a | |
parent | fa4a18e73b21402ed00cfb852d94d169994c5aa3 [diff] |
wil6210: fix memory leak in the AP flow When switching between STA and AP modes, memory allocated for Rx vring leaks This is because start_ap() allocates Rx vring but stop_ap() do not free it. Logically, Rx vring is not valid (HW can't use it anymore), so free it in reset() Also, check double init for Rx vring and bail out with -EINVAL Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>