ath10k: ensure peer_map references are cleaned up
authorBen Greear <greearb@candelatech.com>
Thu, 30 Jun 2016 12:23:53 +0000 (15:23 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 8 Jul 2016 06:41:59 +0000 (09:41 +0300)
commit6d68f7900d2572372557dc8d96b6377bc8512f69
treea37a3648de3a50e8adfed429f66e012d4f2b210a
parentde0170beaa88bc5d7210a72db7cd5738a59bc23d
ath10k: ensure peer_map references are cleaned up

While debugging OS crashes due to firmware crashes, I enabled
kasan, and it noticed that peer objects were being used-after-freed.

Looks like there are two places we could be leaving stale references
in the peer-map, so clean that up.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c