diff options
Diffstat (limited to 'drivers/firmware/efivars.c')
-rw-r--r-- | drivers/firmware/efivars.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c index 7b1c37497c9a..fa9fa038de3f 100644 --- a/drivers/firmware/efivars.c +++ b/drivers/firmware/efivars.c | |||
@@ -994,7 +994,7 @@ static int efivarfs_unlink(struct inode *dir, struct dentry *dentry) | |||
994 | list_del(&var->list); | 994 | list_del(&var->list); |
995 | spin_unlock(&efivars->lock); | 995 | spin_unlock(&efivars->lock); |
996 | efivar_unregister(var); | 996 | efivar_unregister(var); |
997 | drop_nlink(dir); | 997 | drop_nlink(dentry->d_inode); |
998 | dput(dentry); | 998 | dput(dentry); |
999 | return 0; | 999 | return 0; |
1000 | } | 1000 | } |