From 2974831dd5d298d18d0ea87ec46a84e920731efa Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sun, 4 Feb 2024 21:33:49 -0500 Subject: [PATCH] exfat_find(): constify qstr argument Nothing outside of fs/dcache.c has any business modifying dentry names; passing &dentry->d_name as an argument should have that argument declared as a const pointer. Acked-by: Namjae Jeon Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- fs/exfat/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/exfat/namei.c b/fs/exfat/namei.c index f5f1c4e8a29fd..c8388a2ec2277 100644 --- a/fs/exfat/namei.c +++ b/fs/exfat/namei.c @@ -587,7 +587,7 @@ unlock: } /* lookup a file */ -static int exfat_find(struct inode *dir, struct qstr *qname, +static int exfat_find(struct inode *dir, const struct qstr *qname, struct exfat_dir_entry *info) { int ret, dentry, count; -- 2.47.3