diff options
Diffstat (limited to 'usr/src/uts/common/os/bitset.c')
-rw-r--r-- | usr/src/uts/common/os/bitset.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/uts/common/os/bitset.c b/usr/src/uts/common/os/bitset.c index 8222fd9faa..bfa6273ac5 100644 --- a/usr/src/uts/common/os/bitset.c +++ b/usr/src/uts/common/os/bitset.c @@ -128,7 +128,8 @@ bitset_del(bitset_t *b, uint_t elt) int bitset_in_set(bitset_t *b, uint_t elt) { - ASSERT(b->bs_words * BT_NBIPUL > elt); + if (elt >= b->bs_words * BT_NBIPUL) + return (0); return (BT_TEST(b->bs_set, elt)); } |