From: John Linville Date: Tue, 23 Jun 2015 18:45:45 +0000 (-0400) Subject: mwifiex: avoid freeing improper pointer in mwifiex_set_wowlan_mef_entry X-Git-Tag: omap-for-v4.3/fixes-rc1~110^2~246^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=722d26680af10bd128b5228ba23e5d11ef2256c4;p=pandora-kernel.git mwifiex: avoid freeing improper pointer in mwifiex_set_wowlan_mef_entry mwifiex_set_wowlan_mef_entry attempts to free a passed-in pointer in case of an error. The only caller (mwifiex_set_mef_filter) passes that pointer as an offset into allocated memory, so any attempt to free that will not be the actual allocated pointer. Address this by changing mwifiex_set_wowlan_mef_entry to not do any free, and to cause mwifiex_set_mef_filter to do the appropriate free if the call to mwifiex_set_wowlan_mef_entry fails. Coverity CID #1295879 Signed-off-by: John W. Linville Acked-by: Amitkumar Karwar Signed-off-by: Kalle Valo --- Reading git-diff-tree failed