mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 16:44:10 +08:00
ath9k: fix memory leak in DFS pattern detector
Free instance of pattern detector if requested DFS domain is not supported. Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
259bcf87fb
commit
70bf870b54
@ -295,6 +295,7 @@ dfs_pattern_detector_init(enum nl80211_dfs_regions region)
|
|||||||
return dpd;
|
return dpd;
|
||||||
|
|
||||||
pr_err("Could not set DFS domain to %d. ", region);
|
pr_err("Could not set DFS domain to %d. ", region);
|
||||||
|
kfree(dpd);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(dfs_pattern_detector_init);
|
EXPORT_SYMBOL(dfs_pattern_detector_init);
|
||||||
|
Loading…
Reference in New Issue
Block a user