git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b48badf
)
fuse: fix race in llseek
author
Miklos Szeredi
<mszeredi@suse.cz>
Wed, 30 Apr 2008 07:54:45 +0000
(
00:54
-0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:51 +0000
(08:29 -0700)
Fuse doesn't use i_mutex to protect setting i_size, and so
generic_file_llseek() can be racy: it doesn't use i_size_read().
So do a fuse specific llseek method, which does use i_size_read().
[akpm@linux-foundation.org: make `retval' loff_t]
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/file.c
patch
|
blob
|
history
diff --cc
fs/fuse/file.c
Simple merge