]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/core/dev.c
vfs: make the string hashes salt the hash
[mirror_ubuntu-artful-kernel.git] / net / core / dev.c
index 904ff431d570e3cfc0e6255480bd25f3c9dec2f3..7f7d7ef1caa568b99d2d1daca045fa988c696d95 100644 (file)
@@ -196,7 +196,7 @@ static inline void dev_base_seq_inc(struct net *net)
 
 static inline struct hlist_head *dev_name_hash(struct net *net, const char *name)
 {
-       unsigned int hash = full_name_hash(name, strnlen(name, IFNAMSIZ));
+       unsigned int hash = full_name_hash(net, name, strnlen(name, IFNAMSIZ));
 
        return &net->dev_name_head[hash_32(hash, NETDEV_HASHBITS)];
 }