From d6fdf29f7b99814d3673f2d9f4649262807cb836 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Thu, 1 Dec 2022 17:01:03 +0100 Subject: [PATCH] posix_acl: Fix the type of sentinel in get_acl The type should be struct posix_acl * instead of void *. Cc: Christian Brauner Cc: Alexander Viro Signed-off-by: Uros Bizjak Signed-off-by: Christian Brauner (Microsoft) --- fs/posix_acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/posix_acl.c b/fs/posix_acl.c index 989bbf280bfe..e6643db35cce 100644 --- a/fs/posix_acl.c +++ b/fs/posix_acl.c @@ -115,7 +115,7 @@ static struct posix_acl *__get_acl(struct user_namespace *mnt_userns, struct dentry *dentry, struct inode *inode, int type) { - void *sentinel; + struct posix_acl *sentinel; struct posix_acl **p; struct posix_acl *acl;