From: Uros Bizjak Date: Thu, 1 Dec 2022 16:01:03 +0000 (+0100) Subject: posix_acl: Fix the type of sentinel in get_acl X-Git-Tag: v6.2-rc1~158^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d6fdf29f7b99814d3673f2d9f4649262807cb836;p=thirdparty%2Fkernel%2Flinux.git 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) --- diff --git a/fs/posix_acl.c b/fs/posix_acl.c index 989bbf280bfe1..e6643db35cce3 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;