Skip to content
Snippets Groups Projects
Commit 22910c93 authored by Yuri.Sh's avatar Yuri.Sh Committed by GitHub
Browse files

Merge pull request #100 from Synology/Slink_leak

Fix leak for symbolic link in exfat_lookup
parents 9a2f465c 8dfaad7e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -829,7 +829,7 @@ static struct dentry *exfat_lookup(struct inode *dir, struct dentry *dentry,
}
 
i_mode = inode->i_mode;
if (S_ISLNK(i_mode)) {
if (S_ISLNK(i_mode) && !EXFAT_I(inode)->target) {
EXFAT_I(inode)->target = kmalloc(i_size_read(inode)+1, GFP_KERNEL);
if (!EXFAT_I(inode)->target) {
err = -ENOMEM;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment