Message ID | 1533081093-16921-1-git-send-email-greearb@candelatech.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | ath10k: fix use-after-free of netbufs_ring | expand |
diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c index 8ab949d..35e6fd9 100644 --- a/drivers/net/wireless/ath/ath10k/htt_rx.c +++ b/drivers/net/wireless/ath/ath10k/htt_rx.c @@ -298,6 +298,8 @@ void ath10k_htt_rx_free(struct ath10k_htt *htt) htt->rx_ring.alloc_idx.paddr); kfree(htt->rx_ring.netbufs_ring); + htt->rx_ring.netbufs_ring = NULL; + htt->rx_ring.size = 0; } static inline struct sk_buff *ath10k_htt_rx_netbuf_pop(struct ath10k_htt *htt)