diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2015-05-26 06:34:28 -0700 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-06-02 23:15:56 +0300 |
commit | 0769b27739ee420a391ee66a431c1474370aec6b (patch) | |
tree | 3a6ee6ba1a16f6350dbeab0db7dac634e217402a /drivers/net/wireless/mwifiex/main.c | |
parent | e065ddb891755c74f73c60989f96784f3aa65f81 (diff) |
mwifiex: fix a possible double free issue
As drv_info_dump pointer doesn't get reset, we may end up
freeing the allocated memory twice.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mwifiex/main.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/main.c b/drivers/net/wireless/mwifiex/main.c index 138c1cccf7d3..cb0097890d3f 100644 --- a/drivers/net/wireless/mwifiex/main.c +++ b/drivers/net/wireless/mwifiex/main.c @@ -886,6 +886,7 @@ void mwifiex_dump_drv_info(struct mwifiex_adapter *adapter) if (adapter->drv_info_dump) { vfree(adapter->drv_info_dump); + adapter->drv_info_dump = NULL; adapter->drv_info_size = 0; } |