]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mt76: mt7615: fix potential memory leak in mcu message handler
authorSean Wang <sean.wang@mediatek.com>
Tue, 7 Jul 2020 19:16:48 +0000 (03:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:23:58 +0000 (08:23 +0200)
commit4475bd356c03b559546a0cb0aef6b67d66a8e066
treed5724b10b713d51d4d34db21f331172480bcc9e0
parent47027981d9583394e210de1c421c3597ae6b672f
mt76: mt7615: fix potential memory leak in mcu message handler

[ Upstream commit 9248c08c3fc4ef816c82aa49d01123f4746d349f ]

Fix potential memory leak in mcu message handler on error condition.

Fixes: 0e6a29e477f3 ("mt76: mt7615: add support to read temperature from mcu")
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c