From: Vladimir Kondratiev Date: Mon, 17 Mar 2014 13:34:17 +0000 (+0200) Subject: wil6210: fix memory leak in the AP flow X-Git-Tag: v3.15-rc1~113^2~93^2^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bf6adb988c6843f0e58d2b210526cf947a8a746;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed