exynos-linux-stable/drivers/staging/android
Shuxiao Zhang 8f8de8d2bf 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.  91360b02ab ("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: 91360b02ab ("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>
2017-04-12 12:41:11 +02:00
..
ion staging: android: ion: Fix error handling in ion_query_heaps() 2016-10-24 15:36:15 +02:00
uapi staging: ion: Fix a coding style issue 2016-09-25 12:37:14 +02:00
ashmem.c staging: android: ashmem: lseek failed due to no FMODE_LSEEK. 2017-04-12 12:41:11 +02:00
ashmem.h
Kconfig dma-buf/sw_sync: de-stage SW_SYNC 2016-08-15 16:41:46 +02:00
lowmemorykiller.c Staging: android: fixed permissions style issue 2016-09-27 13:08:05 +02:00
Makefile dma-buf/sw_sync: de-stage SW_SYNC 2016-08-15 16:41:46 +02:00
TODO staging/android: add TODO to de-stage android sync framework 2015-12-14 11:05:45 -08:00