diff options
author | esaxe <none@none> | 2007-02-21 17:37:15 -0800 |
---|---|---|
committer | esaxe <none@none> | 2007-02-21 17:37:15 -0800 |
commit | 0f424180e3b253cef8b25600a32523677cd78cfa (patch) | |
tree | cf8c0835c8a322c66c9431b65921f0a28d37020b | |
parent | 5363b1129db4ee42d2c9736898eab4670580bec7 (diff) | |
download | illumos-joyent-0f424180e3b253cef8b25600a32523677cd78cfa.tar.gz |
6525824 assertion failed: b->bs_words * (1 << 6) > elt
-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)); } |