summaryrefslogtreecommitdiffstats
path: root/uncrypt/uncrypt.cpp
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@google.com>2018-07-24 00:38:35 +0200
committerJaegeuk Kim <jaegeuk@google.com>2018-08-01 05:52:51 +0200
commit2669da0d01e141962e898ee50ec4895383df0aaf (patch)
tree32001fdbae7387443e9fe0790fba1a5319eff56e /uncrypt/uncrypt.cpp
parentMerge "recovery: Add ability to interrupt UI" (diff)
downloadandroid_bootable_recovery-2669da0d01e141962e898ee50ec4895383df0aaf.tar
android_bootable_recovery-2669da0d01e141962e898ee50ec4895383df0aaf.tar.gz
android_bootable_recovery-2669da0d01e141962e898ee50ec4895383df0aaf.tar.bz2
android_bootable_recovery-2669da0d01e141962e898ee50ec4895383df0aaf.tar.lz
android_bootable_recovery-2669da0d01e141962e898ee50ec4895383df0aaf.tar.xz
android_bootable_recovery-2669da0d01e141962e898ee50ec4895383df0aaf.tar.zst
android_bootable_recovery-2669da0d01e141962e898ee50ec4895383df0aaf.zip
Diffstat (limited to 'uncrypt/uncrypt.cpp')
-rw-r--r--uncrypt/uncrypt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/uncrypt/uncrypt.cpp b/uncrypt/uncrypt.cpp
index 16036f9ce..95f40c71f 100644
--- a/uncrypt/uncrypt.cpp
+++ b/uncrypt/uncrypt.cpp
@@ -332,7 +332,8 @@ static int produce_block_map(const char* path, const char* map_file, const char*
#define F2FS_IOC_GET_PIN_FILE _IOW(F2FS_IOCTL_MAGIC, 14, __u32)
#endif
if (f2fs_fs) {
- int error = ioctl(fd, F2FS_IOC_SET_PIN_FILE);
+ __u32 set = 1;
+ int error = ioctl(fd, F2FS_IOC_SET_PIN_FILE, &set);
// Don't break the old kernels which don't support it.
if (error && errno != ENOTTY && errno != ENOTSUP) {
PLOG(ERROR) << "Failed to set pin_file for f2fs: " << path << " on " << blk_dev;