efivarfs: Delete dentry from dcache in efivarfs_file_write()
[~shefty/rdma-dev.git] / drivers / firmware / efivars.c
index 807dad48b2b14d8257996791c8e7ff767c3bcc5e..2ed59dc1c48a9bb008143b926242c61aa250cc71 100644 (file)
@@ -793,6 +793,7 @@ static ssize_t efivarfs_file_write(struct file *file,
                spin_unlock(&efivars->lock);
                efivar_unregister(var);
                drop_nlink(inode);
+               d_delete(file->f_dentry);
                dput(file->f_dentry);
 
        } else {