From: Eric Biggers Date: Sun, 16 Mar 2014 19:24:08 +0000 (-0500) Subject: vfs: atomic f_pos access in llseek() X-Git-Url: http://pileus.org/git/?p=~andy%2Flinux;a=commitdiff_plain;h=d7a15f8d0777955986a2ab00ab181795cab14b01 vfs: atomic f_pos access in llseek() Commit 9c225f2655e36a4 ("vfs: atomic f_pos accesses as per POSIX") changed several system calls to use fdget_pos() instead of fdget(), but missed sys_llseek(). Fix it. Signed-off-by: Eric Biggers Signed-off-by: Al Viro --- diff --git a/fs/read_write.c b/fs/read_write.c index 54e19b9392d..28cc9c81074 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -307,7 +307,7 @@ SYSCALL_DEFINE5(llseek, unsigned int, fd, unsigned long, offset_high, unsigned int, whence) { int retval; - struct fd f = fdget(fd); + struct fd f = fdget_pos(fd); loff_t offset; if (!f.file) @@ -327,7 +327,7 @@ SYSCALL_DEFINE5(llseek, unsigned int, fd, unsigned long, offset_high, retval = 0; } out_putf: - fdput(f); + fdput_pos(f); return retval; } #endif