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:
parent
921716186f
commit
cf76495e0a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user