wifi: mt76: mt7915: fix memory leak in mt7915_mmio_wed_init_rx_buf
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 17 Jan 2023 13:53:14 +0000 (14:53 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 3 Feb 2023 13:47:17 +0000 (14:47 +0100)
commit412d19b42042fb7e7148ee5293a7ce682a76a0f2
tree465e56c43c637b6b689e4972a1c932d12d0d47d5
parentc222f77fd421bd1a44c395960867cd75273943f1
wifi: mt76: mt7915: fix memory leak in mt7915_mmio_wed_init_rx_buf

Free mt76_txwi_cache pointer in mt7915_mmio_wed_init_rx_buf routine in
case of failure.

Fixes: 4f831d18d12d ("wifi: mt76: mt7915: enable WED RX support")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/mmio.c