Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29472c75 authored by Devin Kim's avatar Devin Kim
Browse files

uncrypt: fix ioctl direction for F2FS_IOC_GET_PIN_FILE

The direction should be set as READ, not WRITE

Change-Id: Id695276f25c1d75bca3a02d87e4a59623e95cb00
parent da46f906
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;