]> 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)
committerFelix Fietkau <nbd@nbd.name>
Fri, 13 May 2022 07:39:34 +0000 (09:39 +0200)
commitac340b8525fe5ab81b13d8be57ad1a04312e7c7a
tree13588915bb79ba111f55014b9f776540cb92d4b1
parent1f182ffa733ba35969fb59c144558d84ba01ca53
mt76: mt7921: Fix the error handling path of mt7921_pci_probe()

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>
drivers/net/wireless/mediatek/mt76/mt7921/pci.c