[PATCH] fs/ntfs3: fix d_find_alias.cocci warnings
From: kernel test robot
Date: Sat Mar 27 2021 - 22:15:42 EST
From: kernel test robot <lkp@xxxxxxxxx>
fs/ntfs3/super.c:93:17-23: Missing call to dput() at line 121.
Make sure calls to d_find_alias() have a corresponding call to dput().
Generated by: scripts/coccinelle/api/d_find_alias.cocci
CC: Konstantin Komarov <almaz.alexandrovich@xxxxxxxxxxxxxxxxxxxx>
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: kernel test robot <lkp@xxxxxxxxx>
---
url: https://github.com/0day-ci/linux/commits/Konstantin-Komarov/NTFS-read-write-driver-GPL-implementation-by-Paragon-Software/20210328-054516
base: 931294922e65a23e1aad6398b9ae02df74044679
Please take the patch only if it's a positive warning. Thanks!
super.c | 1 +
1 file changed, 1 insertion(+)
--- a/fs/ntfs3/super.c
+++ b/fs/ntfs3/super.c
@@ -118,6 +118,7 @@ void ntfs_inode_printk(struct inode *ino
atomic_inc(&s_name_buf_cnt);
if (name != s_name_buf)
kfree(name);
+ dput(dentry);
}
#endif