The branch main has been updated by khng:

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

commit cf76495e0a30043503ef126f0a485e314730a221
Author:     Ka Ho Ng <[email protected]>
AuthorDate: 2021-03-31 19:30:21 +0000
Commit:     Ka Ho Ng <[email protected]>
CommitDate: 2021-03-31 19:34:34 +0000

    AMD-vi: Fix mismatched NULL checking in amdiommu teardown path
    
    Sponsored by:   The FreeBSD Foundation
    Approved by:    lwhsu (mentor)
    MFC with:       74ada297e897
---
 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;
        }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to