diff options
author | imp <imp@FreeBSD.org> | 2003-10-24 07:20:13 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-10-24 07:20:13 +0000 |
commit | 44a38765ae4765b221807e39761da56596a171f8 (patch) | |
tree | 07a8789e6f93c6446c850fa8b1f7acba4143a175 /sys/dev/pccbb | |
parent | c703d9a33e19de78e90b955c2ca1b03e3bb2917d (diff) | |
download | FreeBSD-src-44a38765ae4765b221807e39761da56596a171f8.zip FreeBSD-src-44a38765ae4765b221807e39761da56596a171f8.tar.gz |
Backswards is as backwards does: If we're MPSAFE, then we don't need
giant, which implies that we need to take out giant it we're NOT
MPSAFE.
# I can't believe the number of people that looked at this failed to
# detect this.
Diffstat (limited to 'sys/dev/pccbb')
-rw-r--r-- | sys/dev/pccbb/pccbb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pccbb/pccbb.c b/sys/dev/pccbb/pccbb.c index 27a7fb1..fb9926f 100644 --- a/sys/dev/pccbb/pccbb.c +++ b/sys/dev/pccbb/pccbb.c @@ -1162,10 +1162,10 @@ cbb_intr(void *arg) */ if (sc->flags & CBB_CARD_OK) { STAILQ_FOREACH(ih, &sc->intr_handlers, entries) { - if ((ih->flags & INTR_MPSAFE) != 0) + if ((ih->flags & INTR_MPSAFE) == 0) mtx_lock(&Giant); (*ih->intr)(ih->arg); - if ((ih->flags & INTR_MPSAFE) != 0) + if ((ih->flags & INTR_MPSAFE) == 0) mtx_unlock(&Giant); } } |