diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2013-11-15 04:10:40 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-11-15 20:29:31 +0100 |
commit | 98a4635bba7050afdbdce428cc44a0471779ffc5 (patch) | |
tree | 241dccc95a98c9d1f1d82941f79c1084904b3695 /drivers/net/wireless/mwifiex/pcie.c | |
parent | mwifiex: fix NULL pointer dereference in mwifiex_fw_dpc (diff) | |
download | linux-98a4635bba7050afdbdce428cc44a0471779ffc5.tar.xz linux-98a4635bba7050afdbdce428cc44a0471779ffc5.zip |
mwifiex: fix potential mem leak in .del_virtual_intf
1) Currently we freeing wdev for each interface in driver unload
path. We may leak memory if user have already deleted an interface.
mwifiex_add_virtual_intf() allocates wdev structure. So it should
be freed in mwifiex_del_virtual_intf().
This will make sure that wdev will be freed when user deletes an
interface and also in unload path.
2) "priv->netdev->ieee80211_ptr" should also be cleared in
mwifiex_del_virtual_intf.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/pcie.c')
0 files changed, 0 insertions, 0 deletions