AMD-vi: Fix mismatched NULL checking in amdiommu teardown path

Sponsored by:	The FreeBSD Foundation
Approved by:	lwhsu (mentor)
MFC with:	74ada297e8
This commit is contained in:
Ka Ho Ng 2021-04-01 03:30:21 +08:00
parent 921716186f
commit cf76495e0a

View File

@ -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;
}