Skip to contentSkip to conversation

posix_acl: Fix the type of sentinel in get_acl

PATCH Applied Uros Bizjak 2 participants 2 messages Dec 1, 2022 – Dec 2, 2022 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 posix_acl: Fix the type of sentinel in get_acl

The type should be struct posix_acl * instead of void *.

Cc Christian Brauner <[email protected]>
Cc Alexander Viro <[email protected]>
---
 fs/posix_acl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/posix_acl.c +1 -1
index 74dc0f571dc9..3dadc37638a8 100644
@@ -108,7 +108,7 @@ EXPORT_SYMBOL(forget_all_cached_acls);
 
 struct posix_acl *get_acl(struct inode *inode, int type)
 {
-	void *sentinel;
+	struct posix_acl *sentinel;
 	struct posix_acl **p;
 	struct posix_acl *acl;
 
Signature · 1 line
2.38.1
maintainer Applied
#1 lore raw

From: Christian Brauner (Microsoft) <[email protected]>

Quoted 3 lines · Uros Bizjak

The type should be struct posix_acl * instead of void *.

Applied, thanks!

[1/1] posix_acl: Fix the type of sentinel in get_acl

      commit: d6fdf29f7b99814d3673f2d9f4649262807cb836

Christian