Hi John, > From: John W. Linville [mailto:linville@xxxxxxxxxxxxx] > Sent: Wednesday, June 24, 2015 12:16 AM > To: linux-wireless@xxxxxxxxxxxxxxx > Cc: Amitkumar Karwar; Avinash Patil; Kalle Valo; John W. Linville > Subject: [PATCH] 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@xxxxxxxxxxxxx> Acked-by: Amitkumar Karwar <akarwar@xxxxxxxxxxx> Thanks, Amitkumar -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html