compat/compat-3.5.c: Fixed double lock in dev_mc_add_excl
authorVladimir Sokolovsky <vlad@mellanox.com>
Thu, 21 May 2015 13:01:05 +0000 (16:01 +0300)
committerVladimir Sokolovsky <vlad@mellanox.com>
Thu, 21 May 2015 13:01:05 +0000 (16:01 +0300)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
compat/compat-3.5.c

index 8a7a409..186487d 100644 (file)
@@ -85,7 +85,7 @@ int dev_mc_add_excl(struct net_device *dev, unsigned char *addr)
                        goto out;
                }
        }
-       netif_addr_lock_bh(dev);
+       netif_addr_unlock_bh(dev);
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
        return dev_mc_add(dev, addr);