status bits should be &'ed against status to be really functional.

Reported by:	Jike Song
Reviewed by:	yongari
MFC after:	1 week
This commit is contained in:
delphij 2010-09-16 21:06:23 +00:00
parent 0a5f35ddf4
commit d7bdcc10e4

View File

@ -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;
}