mt76: dma: fix a possible memory leak in mt76_add_fragment()
stable inclusion from stable-5.10.17 commit 1d7c1456692446e73b67532d0a4e7964129c742a bugzilla: 48169 -------------------------------- [ Upstream commit 93a1d479 ] Fix a memory leak in mt76_add_fragment routine returning the buffer to the page_frag_cache when we receive a new fragment and the skb_shared_info frag array is full. Fixes: b102f0c5 ("mt76: fix array overflow on receiving too many fragments for a packet") Signed-off-by:Lorenzo Bianconi <lorenzo@kernel.org> Acked-by:
Felix Fietkau <nbd@nbd.name> Signed-off-by:
Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/4f9dd73407da88b2a552517ce8db242d86bf4d5c.1611616130.git.lorenzo@kernel.org Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com> Acked-by:
Xie XiuQi <xiexiuqi@huawei.com>
Loading
Please sign in to comment