diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2010-01-12 03:37:45 +0900 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-01-11 15:38:50 -0800 |
commit | 1dd473fdf1d8a7531e0955480cd129f9c1e8b8a3 (patch) | |
tree | bed53c5c5f93dc61ef074b5fcebc6bc86dc6e99b /fs/ocfs2/ocfs2_fs.h | |
parent | 1b4d40a517e0657a081d5d63518c4badd31c60ea (diff) | |
download | op-kernel-dev-1dd473fdf1d8a7531e0955480cd129f9c1e8b8a3.zip op-kernel-dev-1dd473fdf1d8a7531e0955480cd129f9c1e8b8a3.tar.gz |
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: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/ocfs2_fs.h')
0 files changed, 0 insertions, 0 deletions