]> git.baikalelectronics.ru Git - kernel.git/commit
reiserfs: Fix warning and inode leak when deleting inode with xattrs
authorJan Kara <jack@suse.cz>
Fri, 29 Mar 2013 14:39:16 +0000 (15:39 +0100)
committerJan Kara <jack@suse.cz>
Fri, 29 Mar 2013 16:08:43 +0000 (17:08 +0100)
commitbb56213685559bcf0a2b281eb50dbac022d16216
treed08cf007a00266ea8aef23e01ed832c9053d844a
parentd85b884f0696b7f0483f6aa54e1d5105dcd4d639
reiserfs: Fix warning and inode leak when deleting inode with xattrs

After commit 1e4409f0 (lookup_one_len: don't accept . and ..) reiserfs
started failing to delete xattrs from inode. This was due to a buggy
test for '.' and '..' in fill_with_dentries() which resulted in passing
'.' and '..' entries to lookup_one_len() in some cases. That returned
error and so we failed to iterate over all xattrs of and inode.

Fix the test in fill_with_dentries() along the lines of the one in
lookup_one_len().

Reported-by: Pawel Zawora <pzawora@gmail.com>
CC: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
fs/reiserfs/xattr.c