summaryrefslogtreecommitdiffstats
path: root/crypto/cast_common.c
diff options
context:
space:
mode:
authorJohn Linville <linville@tuxdriver.com>2015-06-23 14:45:45 -0400
committerKalle Valo <kvalo@codeaurora.org>2015-07-21 16:44:21 +0300
commit722d26680af10bd128b5228ba23e5d11ef2256c4 (patch)
tree6f12cb0e12a7cb8758ebf03420a81d267f3daabc /crypto/cast_common.c
parent9030d52cfb340f57d86e1b5d995a463eaddb977b (diff)
downloadop-kernel-dev-722d26680af10bd128b5228ba23e5d11ef2256c4.zip
op-kernel-dev-722d26680af10bd128b5228ba23e5d11ef2256c4.tar.gz
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 <linville@tuxdriver.com> Acked-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'crypto/cast_common.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud