diff options
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev.c | 2 |
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) | |||
2859 | int err; | 2859 | int err; |
2860 | 2860 | ||
2861 | err = __dev_set_promiscuity(dev, inc); | 2861 | err = __dev_set_promiscuity(dev, inc); |
2862 | if (!err) | 2862 | if (err < 0) |
2863 | return err; | 2863 | return err; |
2864 | if (dev->flags != old_flags) | 2864 | if (dev->flags != old_flags) |
2865 | dev_set_rx_mode(dev); | 2865 | dev_set_rx_mode(dev); |