]> www.infradead.org Git - users/hch/configfs.git/commitdiff
posix_acl: Fix the type of sentinel in get_acl
authorUros Bizjak <ubizjak@gmail.com>
Thu, 1 Dec 2022 16:01:03 +0000 (17:01 +0100)
committerChristian Brauner (Microsoft) <brauner@kernel.org>
Fri, 2 Dec 2022 09:01:28 +0000 (10:01 +0100)
The type should be struct posix_acl * instead of void *.

Cc: Christian Brauner <brauner@kernel.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
fs/posix_acl.c

index 989bbf280bfe119bdcc3a3fd0de7e3f1999f5920..e6643db35cce308fe408799528bf74fdd4510a76 100644 (file)
@@ -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;