diff options
author | wpaul <wpaul@FreeBSD.org> | 1998-05-24 00:56:49 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1998-05-24 00:56:49 +0000 |
commit | 327c0f5202829c40d6359f1e6cae078389695032 (patch) | |
tree | 72bdd5aed2ffadc3f29a4cb1671081033da5663c /sys/pci | |
parent | 400d0bfad16ae6cbe5e19d25994b16243d4ef9a1 (diff) | |
download | FreeBSD-src-327c0f5202829c40d6359f1e6cae078389695032.zip FreeBSD-src-327c0f5202829c40d6359f1e6cae078389695032.tar.gz |
Fix a mind-o in tl_setmulti(): when setting a bit in the upper
32 bits of the 64-bit hash table, we have to use a 32-bit shift,
not 31.
Pointed out by: Bill Fenner
Diffstat (limited to 'sys/pci')
-rw-r--r-- | sys/pci/if_tl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pci/if_tl.c b/sys/pci/if_tl.c index faca0a1..24f1df6 100644 --- a/sys/pci/if_tl.c +++ b/sys/pci/if_tl.c @@ -29,7 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_tl.c,v 1.3 1998/05/21 17:05:32 jkh Exp $ + * $Id: if_tl.c,v 1.4 1998/05/22 15:32:22 wpaul Exp $ */ /* @@ -240,7 +240,7 @@ #ifndef lint static char rcsid[] = - "$Id: if_tl.c,v 1.3 1998/05/21 17:05:32 jkh Exp $"; + "$Id: if_tl.c,v 1.4 1998/05/22 15:32:22 wpaul Exp $"; #endif /* @@ -1058,7 +1058,7 @@ static void tl_setmulti(sc) if (h < 32) hashes[0] |= (1 << h); else - hashes[1] |= (1 << (h - 31)); + hashes[1] |= (1 << (h - 32)); } } |