Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Fix typo in meth driver

An | in an if statement to check a bit? I think this needs to be a &.
As a result of this typo meth will always operate in promiscuous mode.

Signed-off-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

authored by

Christoph Lameter and committed by
Jeff Garzik
cdc18a67 a6a53252

+1 -1
+1 -1
drivers/net/meth.c
··· 287 287 288 288 /* Initial mode: 10 | Half-duplex | Accept normal packets */ 289 289 priv->mac_ctrl = METH_ACCEPT_MCAST | METH_DEFAULT_IPG; 290 - if (dev->flags | IFF_PROMISC) 290 + if (dev->flags & IFF_PROMISC) 291 291 priv->mac_ctrl |= METH_PROMISC; 292 292 mace->eth.mac_ctrl = priv->mac_ctrl; 293 293