]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
eCryptfs: remove retry loop in ecryptfs_readdir()
authorMichael Halcrow <mhalcrow@us.ibm.com>
Thu, 16 Oct 2008 05:02:49 +0000 (22:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:38 +0000 (11:21 -0700)
commit7d6c7045581d3736c5f14053eb59342aa0b2cc07
tree3906a3e8b0d4a2e4752c4eb19defc62691d200d7
parent9d793b0bcbbbc37d80241862dfa5257963d5415e
eCryptfs: remove retry loop in ecryptfs_readdir()

The retry block in ecryptfs_readdir() has been in the eCryptfs code base
for a while, apparently for no good reason.  This loop could potentially
run without terminating.  This patch removes the loop, instead erroring
out if vfs_readdir() on the lower file fails.

Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com>
Reported-by: Al Viro <viro@ZinIV.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ecryptfs/file.c