Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Sep 2021 19:06:00 GMT
From:      Ka Ho Ng <khng@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 834f54457853 - stable/12 - AMD-vi: Fix mismatched NULL checking in amdiommu teardown path
Message-ID:  <202109031906.183J60xl050619@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by khng:

URL: https://cgit.FreeBSD.org/src/commit/?id=834f544578533346b246b2e81f72bca7afadb111

commit 834f544578533346b246b2e81f72bca7afadb111
Author:     Ka Ho Ng <khng@FreeBSD.org>
AuthorDate: 2021-03-31 19:30:21 +0000
Commit:     Ka Ho Ng <khng@FreeBSD.org>
CommitDate: 2021-09-03 18:46:40 +0000

    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)
---
 sys/amd64/vmm/amd/amdiommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/amd64/vmm/amd/amdiommu.c b/sys/amd64/vmm/amd/amdiommu.c
index 26c4b10d7807..8dceb1aa241b 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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109031906.183J60xl050619>