Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1dd473fd authored by OGAWA Hirofumi's avatar OGAWA Hirofumi Committed by Joel Becker
Browse files

ocfs2: Fix refcnt leak on ocfs2_fast_follow_link() error path



If ->follow_link handler returns an error, it should decrement
nd->path refcnt. But ocfs2_fast_follow_link() doesn't decrement.

This patch fixes the problem by using nd_set_link() style error handling
instead of playing with nd->path.

Signed-off-by: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
parent 1b4d40a5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment