mt76: mt7921: Fix the error handling path of mt7921_pci_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 15 Jul 2022 19:59:26 +0000 (12:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jul 2022 15:25:08 +0000 (17:25 +0200)
commitcf719adb6fa91d49ef6009d1fab624dc0830ebcd
tree2529ba87d20c7b083500edea76572fe10e3e78ec
parent22b910a7a378108654784c3625361e334553327c
mt76: mt7921: Fix the error handling path of mt7921_pci_probe()

commit 4e90db5e21eb3bb272fe47386dc3506755e209e9 upstream.

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: 602cc0c9618a ("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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mediatek/mt76/mt7921/pci.c