staging: android: ashmem: lseek failed due to no FMODE_LSEEK.
authorzhangshuxiao <zhangshuxiao@xiaomi.com>
Wed, 8 Mar 2017 08:53:24 +0000 (16:53 +0800)
committerDanny Wood <danwood76@gmail.com>
Fri, 22 Feb 2019 11:31:04 +0000 (11:31 +0000)
commit4b6cdc2f1754a102ce343a33e577593e16541b73
treeb60aaf951606fb0bbfb15c7e8831ea93072b7677
parentf9861e0c25d35bf2018668f9be50e083551a3d50
staging: android: ashmem: lseek failed due to no FMODE_LSEEK.

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.

Change-Id: Ia78ef4c7c96adb89d52e70b63f7c00636fe60d01
Signed-off-by: zhangshuxiao <zhangshuxiao@xiaomi.com>
(cherry picked from commit 6c8d409129bbebe36cde9f8e511011756216163a)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/android/ashmem.c