]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: fix oops in nfs_rename()
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Wed, 6 Jan 2010 23:48:26 +0000 (18:48 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 6 Jan 2010 23:48:26 +0000 (18:48 -0500)
commitfaea8f20a4a1ddb8c3745af3326fcb32321f7712
treef0061bef629a1c6a14e08f1b660b3beca0adc7cd
parent939873ce324c81e8a809965d3bb7cd99ba76b8c2
nfs: fix oops in nfs_rename()

Recent change is missing to update "rehash".  With that change, it will
become the cause of adding dentry to hash twice.

This explains the reason of Oops (dereference the freed dentry in
__d_lookup()) on my machine.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Reported-by: Marvin <marvin24@gmx.de>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c