Author: gonzo
Date: Sun Oct 9 04:36:40 2016
New Revision: 306898
URL: https://svnweb.freebsd.org/changeset/base/306898
Log:
Fix release MSI method for NVidia Tegra PCI controller
Modified:
head/sys/arm/nvidia/tegra_pcie.c
Modified: head/sys/arm/nvidia/tegra_pcie.c
==============================================================================
--- head/sys/arm/nvidia/tegra_pcie.c Sun Oct 9 04:29:42 2016
(r306897)
+++ head/sys/arm/nvidia/tegra_pcie.c Sun Oct 9 04:36:40 2016
(r306898)
@@ -762,15 +762,15 @@ tegra_pcib_msi_release_msi(device_t dev,
sc = device_get_softc(dev);
mtx_lock(&sc->mtx);
for (i = 0; i < count; i++) {
- ti = (struct tegra_pcib_irqsrc *)isrc;
+ ti = (struct tegra_pcib_irqsrc *)isrc[i];
KASSERT((ti->flags & TEGRA_FLAG_MSI_USED) ==
TEGRA_FLAG_MSI_USED,
("%s: Trying to release an unused MSI-X interrupt",
__func__));
ti->flags &= ~TEGRA_FLAG_MSI_USED;
- mtx_unlock(&sc->mtx);
}
+ mtx_unlock(&sc->mtx);
return (0);
}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"