aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAmitkumar Karwar <[email protected]>2013-11-14 19:10:38 -0800
committerJohn W. Linville <[email protected]>2013-11-15 14:29:31 -0500
commitbec568ff51078276109e21b5521829e2dd60a7fa (patch)
tree146e3c17d648eb70d375bff711903c1e6634c3d5 /tools/perf/scripts/python
parent68b76e99d1f7b696d49b5e99286401150072987a (diff)
mwifiex: failure path handling in mwifiex_add_virtual_intf()
1) If register_netdevice() is failed, we are freeing netdev pointer, but priv->netdev is not cleared. This gives kernel paging request error when driver is unloaded or interface is deleted. Fix the problem by clearing the pointer. 2) Fix memory leak issue by freeing 'wdev' in failure paths. Also, clear priv->wdev pointer. As mwifiex_add_virtual_intf() successfully handles the failure conditions, redundant code under err_add_intf label is removed in this patch. Reported-by: Ujjal Roy <[email protected]> Signed-off-by: Amitkumar Karwar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions