aboutsummaryrefslogtreecommitdiffstats
path: root/uncrypt/uncrypt.cpp
diff options
context:
space:
mode:
authorDevin Kim <dojip.kim@lge.com>2018-09-12 08:42:49 -0700
committerDevin Kim <dojip.kim@lge.com>2018-09-12 09:55:33 -0700
commit29472c7566175090726566e992a5fb60e13b2895 (patch)
tree708e07d9ee09c1bef5d0b322c41ef3d0198cc640 /uncrypt/uncrypt.cpp
parentda46f9067a66ee4d58934d1c6e17d0397ea90da7 (diff)
downloadandroid_bootable_recovery-29472c7566175090726566e992a5fb60e13b2895.tar.gz
android_bootable_recovery-29472c7566175090726566e992a5fb60e13b2895.tar.bz2
android_bootable_recovery-29472c7566175090726566e992a5fb60e13b2895.zip
uncrypt: fix ioctl direction for F2FS_IOC_GET_PIN_FILE
The direction should be set as READ, not WRITE Change-Id: Id695276f25c1d75bca3a02d87e4a59623e95cb00
Diffstat (limited to 'uncrypt/uncrypt.cpp')
-rw-r--r--uncrypt/uncrypt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/uncrypt/uncrypt.cpp b/uncrypt/uncrypt.cpp
index 95f40c71..cf068ba8 100644
--- a/uncrypt/uncrypt.cpp
+++ b/uncrypt/uncrypt.cpp
@@ -329,7 +329,7 @@ static int produce_block_map(const char* path, const char* map_file, const char*
#define F2FS_IOCTL_MAGIC 0xf5
#endif
#define F2FS_IOC_SET_PIN_FILE _IOW(F2FS_IOCTL_MAGIC, 13, __u32)
-#define F2FS_IOC_GET_PIN_FILE _IOW(F2FS_IOCTL_MAGIC, 14, __u32)
+#define F2FS_IOC_GET_PIN_FILE _IOR(F2FS_IOCTL_MAGIC, 14, __u32)
#endif
if (f2fs_fs) {
__u32 set = 1;