summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-07-06 15:49:08 -0700
committerDavid S. Miller <davem@davemloft.net>2008-07-06 15:49:08 -0700
commit4b5a698ef423eebc37cfacc6d3376d6dffd5bf83 (patch)
treefc887610dc023d19c9abbe7189a5719ee35c7f67 /net
parentfb0305ce1b03f6ff17f84f2c63daccecb45f2805 (diff)
downloadblackbird-op-linux-4b5a698ef423eebc37cfacc6d3376d6dffd5bf83.tar.gz
blackbird-op-linux-4b5a698ef423eebc37cfacc6d3376d6dffd5bf83.zip
net: fix dev_set_promiscuity() breakage
Commit dad9b335 (netdevice: Fix promiscuity and allmulti overflow) broke dev_set_promiscuity() by returning on success without reprogramming the device. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index bfa9a6a951dd..75933932463d 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -2859,7 +2859,7 @@ int dev_set_promiscuity(struct net_device *dev, int inc)
int err;
err = __dev_set_promiscuity(dev, inc);
- if (!err)
+ if (err < 0)
return err;
if (dev->flags != old_flags)
dev_set_rx_mode(dev);
OpenPOWER on IntegriCloud