]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/efivarfs/super.c
vfs: make the string hashes salt the hash
[mirror_ubuntu-artful-kernel.git] / fs / efivarfs / super.c
index 9cb54a38832de664b3ced0c4b876ececb7c907dd..a5e607e8f056dc7c1cac815573c01d6a2601caf1 100644 (file)
@@ -65,7 +65,7 @@ static int efivarfs_d_compare(const struct dentry *parent,
 
 static int efivarfs_d_hash(const struct dentry *dentry, struct qstr *qstr)
 {
-       unsigned long hash = init_name_hash();
+       unsigned long hash = init_name_hash(dentry);
        const unsigned char *s = qstr->name;
        unsigned int len = qstr->len;
 
@@ -98,7 +98,7 @@ static struct dentry *efivarfs_alloc_dentry(struct dentry *parent, char *name)
        q.name = name;
        q.len = strlen(name);
 
-       err = efivarfs_d_hash(NULL, &q);
+       err = efivarfs_d_hash(parent, &q);
        if (err)
                return ERR_PTR(err);