From: Kalle Valo Date: Tue, 30 Apr 2013 10:23:11 +0300 Subject: [ath9k-devel] [PATCH 6/6] ath10k: cleanup ath10k_pci_stop_intr() In-Reply-To: <1366962748-6660-7-git-send-email-michal.kazior@tieto.com> (Michal Kazior's message of "Fri, 26 Apr 2013 09:52:28 +0200") References: <1366962748-6660-1-git-send-email-michal.kazior@tieto.com> <1366962748-6660-7-git-send-email-michal.kazior@tieto.com> Message-ID: <87zjwglbxc.fsf@kamboji.qca.qualcomm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Michal Kazior writes: > Signed-off-by: Michal Kazior [...] > + /* There's at least one interrupt irregardless whether its legacy INTR > + * or MSI or MSI-X */ > + for (i = 0; i < min(1, ar_pci->num_msi_intrs); i++) > + free_irq(ar_pci->pdev->irq + i, ar); I'm not sure about this. If num_msi_intrs is 5 we still free only the first irq? Did I understood this correctly? -- Kalle Valo