GFS2: Fix refcnt leak on gfs2_follow_link() error path
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Mon, 11 Jan 2010 18:36:57 +0000 (03:36 +0900)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 12 Jan 2010 09:30:15 +0000 (09:30 +0000)
commit0f585f14d4e34ab701283e9237ac7695cd7c9e31
tree7ded56c8f9ddc84d4930a5a9f0f52c9b1464f6e1
parent066000dd856709b6980123eb39b957fe26993f7b
GFS2: Fix refcnt leak on gfs2_follow_link() error path

If ->follow_link handler return the error, it should decrement
nd->path refcnt.

This patch fix it.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/ops_inode.c