]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_htc: Fix memory leak on WMI event handler
authorRajkumar Manoharan <rmanoharan@atheros.com>
Tue, 14 Sep 2010 07:37:28 +0000 (13:07 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 14 Sep 2010 20:14:26 +0000 (16:14 -0400)
commitaf886a1d5db8daecfff99e29513951169ee0298c
treeb88071d525cc215f4a82c1ca3f08a8364784b16a
parent2a1838ddeb86489cda3124f760930e89afc02bfb
ath9k_htc: Fix memory leak on WMI event handler

ath9k_wmi_ctrl_rx is racy with ath9k_wmi_tasklet on event notification
due to which the wmi_skb may be overwritten which leads to memory leak.

Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/wmi.c
drivers/net/wireless/ath/ath9k/wmi.h