VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Christian Brauner <christian.brauner@ubuntu.com> 2021-01-21 14:19:22 +0100 committer: Christian Brauner <christian.brauner@ubuntu.com> 2021-01-24 14:27:16 +0100 commit: 02f92b3868a1b34ab98464e76b0e4e060474ba10 parent: e6c9a71451560edba343cbcbd500bea0a188f0d1
Commit Summary:
fs: add file and path permissions helpers
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/verity/enable.c b/fs/verity/enable.c
index f7e997a01ad0..77e159a0346b 100644
--- a/fs/verity/enable.c
+++ b/fs/verity/enable.c
@@ -369,7 +369,7 @@ int fsverity_ioctl_enable(struct file *filp, const void __user *uarg)
 	 * has verity enabled, and to stabilize the data being hashed.
 	 */
 
-	err = inode_permission(inode, MAY_WRITE);
+	err = file_permission(filp, MAY_WRITE);
 	if (err)
 		return err;