Re: [PATCH] efivarfs: Drop link count of the right inode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



於 六,2013-01-05 於 13:59 +0800,Lingzhu Xiang 提到:
> efivarfs_unlink() should drop the file's link count, not the directory's.
> 
> Signed-off-by: Lingzhu Xiang <lxiang@xxxxxxxxxx>

Tested-by: Lee, Chun-Yi <jlee@xxxxxxxx>


Thanks
Joey Lee

> ---
>  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 d6b8d2f..60f5324 100644
> --- a/drivers/firmware/efivars.c
> +++ b/drivers/firmware/efivars.c
> @@ -995,7 +995,7 @@ static int efivarfs_unlink(struct inode *dir, struct dentry *dentry)
>  		list_del(&var->list);
>  		spin_unlock(&efivars->lock);
>  		efivar_unregister(var);
> -		drop_nlink(dir);
> +		drop_nlink(dentry->d_inode);
>  		dput(dentry);
>  		return 0;
>  	}


--
To unsubscribe from this list: send the line "unsubscribe linux-efi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux