[PATCH 1/6] ubifs: Don't try to encrypt special files

From: Richard Weinberger
Date: Wed May 17 2017 - 04:37:45 EST


fscrypt can only operate on files, directories and symlinks.

Fixes: d475a507457b5cafa428871a473d0dcc828c5f68
Signed-off-by: Richard Weinberger <richard@xxxxxx>
---
fs/ubifs/dir.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c
index 566079d9b402..70b26221f2e7 100644
--- a/fs/ubifs/dir.c
+++ b/fs/ubifs/dir.c
@@ -142,6 +142,7 @@ struct inode *ubifs_new_inode(struct ubifs_info *c, struct inode *dir,
case S_IFIFO:
case S_IFBLK:
case S_IFCHR:
+ encrypted = false;
inode->i_op = &ubifs_file_inode_operations;
break;
default:
--
2.12.0