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;
        }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to