mt76: mt7615: fix skb use-after-free on mac reset
authorFelix Fietkau <nbd@nbd.name>
Wed, 21 Jul 2021 05:23:46 +0000 (07:23 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 20 Oct 2021 08:36:29 +0000 (10:36 +0200)
commitb5cd1fd6043bbb7c5810067b5f93f3016bfd8a6f
tree781e253cfc0737ce9580a7970578d8d81a7b1597
parentcd3f387371e941e6806b455b4ba5b9f4ca4b77c6
mt76: mt7615: fix skb use-after-free on mac reset

When clearing all existing pending tx slots, mt76_tx_complete_skb needs to
be used to free the skbs, to ensure that they are cleared from the status
list as well.

Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/mac.c