diff options
author | jhb <jhb@FreeBSD.org> | 2006-08-31 18:49:41 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-08-31 18:49:41 +0000 |
commit | 4e7db0ae21fc73935ee0ba5cf01632a28a4e2218 (patch) | |
tree | eb8a04a0a46310bc6346bd29b0de8ae6787506ac /sys | |
parent | c3fa754b3f18ae76fa897258603931d1af2b525c (diff) | |
download | FreeBSD-src-4e7db0ae21fc73935ee0ba5cf01632a28a4e2218.zip FreeBSD-src-4e7db0ae21fc73935ee0ba5cf01632a28a4e2218.tar.gz |
Compare the correct field against NULL when determining whether or not to
do bus_teardown_intr().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/em/if_em.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c index 400d0e3..b151b54 100644 --- a/sys/dev/em/if_em.c +++ b/sys/dev/em/if_em.c @@ -2118,7 +2118,7 @@ em_free_intr(struct adapter *adapter) { device_t dev = adapter->dev; - if (adapter->res_interrupt != NULL) { + if (adapter->int_handler_tag != NULL) { bus_teardown_intr(dev, adapter->res_interrupt, adapter->int_handler_tag); adapter->int_handler_tag = NULL; } |