]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] smbfs readdir vs signal fix
authorAndrew Morton <akpm@osdl.org>
Wed, 1 Feb 2006 11:04:39 +0000 (03:04 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 1 Feb 2006 16:53:09 +0000 (08:53 -0800)
commit4a7b86aff6b92bd29794db449a0437940245168d
tree1224cebafe4104c9621ffa06c08311c19668acc5
parent042a76f8d46868508a7a4aedc7f07d6c5deb87f1
[PATCH] smbfs readdir vs signal fix

An old patch designed to fix http://bugme.osdl.org/show_bug.cgi?id=4497,
"getdents gives empty/random result upon signal".

If smbfs's readdir() is interupted by a signal, smb_readdir() failed to
noticed that and proceeded to treat the unread-into page as valid directory
contents.  Fix that up by handling the -ERESTARTSYS.

Thanks to Stian Skjelstad for reporting and testing.

Cc: Stian Skjelstad <stian@nixia.no>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/smbfs/dir.c