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

Commit 933c9448 authored by Neeraj Soni's avatar Neeraj Soni
Browse files

fscrypt: Fix Data Unit Number used in file encryption



Revert sizeof() usage introduced with
I7981fa7f8f0c4bc058b80b7b8e342cfd81697c74

Change-Id: I004d6c36af6b2c4d99e5149aed5a4b03fcc3dbe6
Signed-off-by: default avatarNeeraj Soni <neersoni@codeaurora.org>
parent 07c3e612
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -19,12 +19,9 @@

struct fscrypt_ctx;

/* iv sector for security/pfe/pfk_fscrypt.c and f2fs. sizeof is required
 * to accommodate 32 bit targets.
 */
/* iv sector for security/pfe/pfk_fscrypt.c and f2fs */
#define PG_DUN(i, p)                                            \
	((((i)->i_ino & 0xffffffff) << (sizeof((i)->i_ino)/2)) | \
				((p)->index & 0xffffffff))
	(((((u64)(i)->i_ino) & 0xffffffff) << 32) | ((p)->index & 0xffffffff))

struct fscrypt_info;