]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: Remove second variable named error in __dentry_path
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 20 Jan 2014 23:43:25 +0000 (15:43 -0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 26 Jan 2014 13:26:43 +0000 (08:26 -0500)
commitd39a77019496b1ddf7bf8f94721a3a10757b7e5f
treec6b7d5d61536d664fa0d37b4a4784245aebfaccf
parent4fd9474c33a07c90a7c068cc94a0772d1d09565f
vfs: Remove second variable named error in __dentry_path

In commit  1a826fafe77ca428b2d66718feeba1e85678f165
Author: Waiman Long <Waiman.Long@hp.com>
Date:   Mon Sep 9 12:18:13 2013 -0400

    dcache: Translating dentry into pathname without taking rename_lock

The __dentry_path locking was changed and the variable error was
intended to be moved outside of the loop.  Unfortunately the inner
declaration of error was not removed. Resulting in a version of
__dentry_path that will never return an error.

Remove the problematic inner declaration of error and allow
__dentry_path to return errors once again.

Cc: stable@vger.kernel.org
Cc: Waiman Long <Waiman.Long@hp.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c