]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix a readdirplus bug
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 30 Nov 2010 17:42:34 +0000 (12:42 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 30 Nov 2010 18:18:49 +0000 (10:18 -0800)
commit3d2097a34e97517b46e17d8b544a0344158180ea
treeeecab05dc4b4c2de61f4b31f51d301fdcf210737
parentb003b636e9ae6832a60fe9625655bbd9fe40feac
NFS: Fix a readdirplus bug

When comparing filehandles in the helper nfs_same_file(), we should not be
using 'strncmp()': filehandles are not null terminated strings.

Instead, we should just use the existing helper nfs_compare_fh().

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nfs/dir.c