aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKa Ho Ng <khng@FreeBSD.org>2021-03-31 19:30:21 +0000
committerKa Ho Ng <khng@FreeBSD.org>2021-04-07 10:55:38 +0000
commit1bbe0448e47fd9edeee97060e823331334319038 (patch)
tree613d9010dda38b44bf77a64a750787d6939d27de
parentd7ffa208d92933e0c72564bfd422aec49dca2fd4 (diff)
AMD-vi: Fix mismatched NULL checking in amdiommu teardown path
Sponsored by: The FreeBSD Foundation Approved by: lwhsu (mentor) MFC with: 74ada297e897 (cherry picked from commit cf76495e0a30043503ef126f0a485e314730a221)
-rw-r--r--sys/amd64/vmm/amd/amdiommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/vmm/amd/amdiommu.c b/sys/amd64/vmm/amd/amdiommu.c
index 4ded23dff003..5eed6ce849cc 100644
--- a/sys/amd64/vmm/amd/amdiommu.c
+++ b/sys/amd64/vmm/amd/amdiommu.c
@@ -165,7 +165,7 @@ ivhd_teardown_intr(device_t dev)
sc = device_get_softc(dev);
- if (sc->event_res != NULL) {
+ if (sc->event_tag != NULL) {
bus_teardown_intr(dev, sc->event_res, sc->event_tag);
sc->event_tag = NULL;
}