diff options
Diffstat (limited to 'sys/dev/ic/rt2661.c')
-rw-r--r-- | sys/dev/ic/rt2661.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/rt2661.c b/sys/dev/ic/rt2661.c index ca017d0892b..fffb8a640a7 100644 --- a/sys/dev/ic/rt2661.c +++ b/sys/dev/ic/rt2661.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rt2661.c,v 1.60 2010/08/28 18:08:07 deraadt Exp $ */ +/* $OpenBSD: rt2661.c,v 1.61 2010/09/06 18:22:02 kettenis Exp $ */ /*- * Copyright (c) 2006 @@ -1247,6 +1247,8 @@ rt2661_intr(void *arg) r1 = RAL_READ(sc, RT2661_INT_SOURCE_CSR); r2 = RAL_READ(sc, RT2661_MCU_INT_SOURCE_CSR); + if (__predict_false(r1 == 0xffffffff && r2 == 0xffffffff)) + return 0; /* device likely went away */ if (r1 == 0 && r2 == 0) return 0; /* not for us */ |