From: Patrick McHardy Date: Sun, 6 Jul 2008 22:49:08 +0000 (-0700) Subject: net: fix dev_set_promiscuity() breakage X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4b5a698ef423eebc37cfacc6d3376d6dffd5bf83;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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);