svn commit: r212764 - head/sys/dev/alc

Xin LI delphij at FreeBSD.org
Thu Sep 16 21:06:24 UTC 2010


Author: delphij
Date: Thu Sep 16 21:06:23 2010
New Revision: 212764
URL: http://svn.freebsd.org/changeset/base/212764

Log:
  status bits should be &'ed against status to be really functional.
  
  Reported by:	Jike Song
  Reviewed by:	yongari
  MFC after:	1 week

Modified:
  head/sys/dev/alc/if_alc.c

Modified: head/sys/dev/alc/if_alc.c
==============================================================================
--- head/sys/dev/alc/if_alc.c	Thu Sep 16 20:23:22 2010	(r212763)
+++ head/sys/dev/alc/if_alc.c	Thu Sep 16 21:06:23 2010	(r212764)
@@ -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-head mailing list