svn commit: r213046 - stable/7/sys/dev/alc
Xin LI
delphij at FreeBSD.org
Thu Sep 23 01:38:53 UTC 2010
Author: delphij
Date: Thu Sep 23 01:38:52 2010
New Revision: 213046
URL: http://svn.freebsd.org/changeset/base/213046
Log:
MFC r212764:
status bits should be &'ed against status to be really functional.
Reported by: Jike Song
Reviewed by: yongari
Modified:
stable/7/sys/dev/alc/if_alc.c
Directory Properties:
stable/7/sys/ (props changed)
stable/7/sys/cddl/contrib/opensolaris/ (props changed)
stable/7/sys/contrib/dev/acpica/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
Modified: stable/7/sys/dev/alc/if_alc.c
==============================================================================
--- stable/7/sys/dev/alc/if_alc.c Thu Sep 23 01:30:50 2010 (r213045)
+++ stable/7/sys/dev/alc/if_alc.c Thu Sep 23 01:38:52 2010 (r213046)
@@ -2948,8 +2948,8 @@ alc_rxeof(struct alc_softc *sc, struct r
* 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;
}
More information about the svn-src-stable-7
mailing list