From d7bdcc10e4df9e7f755be4e1853272956eb39493 Mon Sep 17 00:00:00 2001 From: delphij Date: Thu, 16 Sep 2010 21:06:23 +0000 Subject: status bits should be &'ed against status to be really functional. Reported by: Jike Song Reviewed by: yongari MFC after: 1 week --- sys/dev/alc/if_alc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/alc/if_alc.c b/sys/dev/alc/if_alc.c index 8830b05..53bcb09 100644 --- a/sys/dev/alc/if_alc.c +++ b/sys/dev/alc/if_alc.c @@ -2948,8 +2948,8 @@ alc_rxeof(struct alc_softc *sc, struct rx_rdesc *rrd) * errored frames. */ status |= RRD_TCP_UDPCSUM_NOK | RRD_IPCSUM_NOK; - if ((RRD_ERR_CRC | RRD_ERR_ALIGN | RRD_ERR_TRUNC | - RRD_ERR_RUNT) != 0) + if ((status & (RRD_ERR_CRC | RRD_ERR_ALIGN | + RRD_ERR_TRUNC | RRD_ERR_RUNT)) != 0) return; } -- cgit v1.1