diff options
author | delphij <delphij@FreeBSD.org> | 2010-09-16 21:06:23 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2010-09-16 21:06:23 +0000 |
commit | d7bdcc10e4df9e7f755be4e1853272956eb39493 (patch) | |
tree | c0560fe01dd0a0925cee17b55dfb5241dc7e3e35 /sys/dev/alc | |
parent | 0a5f35ddf4e9a65389db45b669f5783d30ff8a39 (diff) | |
download | FreeBSD-src-d7bdcc10e4df9e7f755be4e1853272956eb39493.zip FreeBSD-src-d7bdcc10e4df9e7f755be4e1853272956eb39493.tar.gz |
status bits should be &'ed against status to be really functional.
Reported by: Jike Song
Reviewed by: yongari
MFC after: 1 week
Diffstat (limited to 'sys/dev/alc')
-rw-r--r-- | sys/dev/alc/if_alc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |