From 9ed03f0231513446c0987e780331f8070c3ecdc3 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Thu, 16 Sep 2010 21:06:23 +0000 Subject: [PATCH] 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(-) diff --git a/sys/dev/alc/if_alc.c b/sys/dev/alc/if_alc.c index 8830b0557e4..53bcb097d67 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; }