summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorShuxiao Zhang <zhangshuxiao@xiaomi.com>2017-04-06 22:30:29 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-12 12:38:33 +0200
commit193b590c71cd4c1fd54f4b4cab1ba73b6212c073 (patch)
treea15622f9e83804aed7a15f0e56e49bae8bf28df1 /arch
parent69d8d58bf50d9cd1bb6f000bbdf54026e74717a3 (diff)
staging: android: ashmem: lseek failed due to no FMODE_LSEEK.
commit 97fbfef6bd597888485b653175fb846c6998b60c upstream. vfs_llseek will check whether the file mode has FMODE_LSEEK, no return failure. But ashmem can be lseek, so add FMODE_LSEEK to ashmem file. Comment From Greg Hackmann: ashmem_llseek() passes the llseek() call through to the backing shmem file. 91360b02ab48 ("ashmem: use vfs_llseek()") changed this from directly calling the file's llseek() op into a VFS layer call. This also adds a check for the FMODE_LSEEK bit, so without that bit ashmem_llseek() now always fails with -ESPIPE. Fixes: 91360b02ab48 ("ashmem: use vfs_llseek()") Signed-off-by: Shuxiao Zhang <zhangshuxiao@xiaomi.com> Tested-by: Greg Hackmann <ghackmann@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions