Skip to content

Commit

Permalink
Fix configfs leak
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jan 14, 2010
1 parent 9850c05 commit 9b6e310
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/configfs/symlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ static int get_target(const char *symname, struct path *path,
ret = -ENOENT;
path_put(path);
}
} else
} else {
ret = -EPERM;
path_put(path);
}
}

return ret;
Expand Down

0 comments on commit 9b6e310

Please sign in to comment.