]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: mt7921: Fix the error handling path of mt7921_pci_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 3 Apr 2022 15:40:33 +0000 (17:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:57 +0000 (10:22 +0200)
commit2fc516a73ed270b2739cbe4ecc19c743b3730613
treeb3caab6c321376979c1a96729537971d1fd426f6
parentd559fb36ebbbdc35365921ab4fae696f2d267226
mt76: mt7921: Fix the error handling path of mt7921_pci_probe()

[ Upstream commit ac340b8525fe5ab81b13d8be57ad1a04312e7c7a ]

In case of error, some resources must be freed, as already done above and
below the devm_kmemdup() and __mt7921e_mcu_drv_pmctrl() calls added in the
commit in Fixes:.

Fixes: 1a8b9203cbe7 ("mt76: mt7921e: fix possible probe failure after reboot")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7921/pci.c