Skip to content

Commit 553c265

Browse files
Raj Kumar Bhagatgregkh
authored andcommitted
wifi: ath12k: fix cleanup path after mhi init
[ Upstream commit 6177c97 ] Currently, the 'err_pci_msi_free' label is misplaced, causing the cleanup sequence to be incorrect. Fix this by moving the 'err_pci_msi_free' label to the correct position after 'err_irq_affinity_cleanup'. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00209-QCAHKSWPL_SILICONZ-1 Fixes: a3012f2 ("wifi: ath12k: set IRQ affinity to CPU0 in case of one MSI vector") Signed-off-by: Raj Kumar Bhagat <quic_rajkbhag@quicinc.com> Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com> Link: https://patch.msgid.link/20250403-ath12k-cleanup-v1-1-ad8f67b0e9cf@quicinc.com Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 44a5159 commit 553c265

File tree

1 file changed

+3
-3
lines changed
  • drivers/net/wireless/ath/ath12k

1 file changed

+3
-3
lines changed

drivers/net/wireless/ath/ath12k/pci.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,12 +1514,12 @@ static int ath12k_pci_probe(struct pci_dev *pdev,
15141514
err_mhi_unregister:
15151515
ath12k_mhi_unregister(ab_pci);
15161516

1517-
err_pci_msi_free:
1518-
ath12k_pci_msi_free(ab_pci);
1519-
15201517
err_irq_affinity_cleanup:
15211518
ath12k_pci_set_irq_affinity_hint(ab_pci, NULL);
15221519

1520+
err_pci_msi_free:
1521+
ath12k_pci_msi_free(ab_pci);
1522+
15231523
err_pci_free_region:
15241524
ath12k_pci_free_region(ab_pci);
15251525

0 commit comments

Comments
 (0)