]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: Ignore kmemleak false positive in nfs_readdir_make_qstr
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 11 Nov 2010 12:53:47 +0000 (12:53 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 16 Nov 2010 17:03:14 +0000 (12:03 -0500)
commit91813552e929b8936dfd1a919b247702d3165fe0
tree7f6cd633219bc19d7a716a0c2af4eaae2b5170ba
parent6b3f8e65e99889033dbf0e0910b6808b6fd995e4
nfs: Ignore kmemleak false positive in nfs_readdir_make_qstr

Strings allocated via kmemdup() in nfs_readdir_make_qstr() are
referenced from the nfs_cache_array which is stored in a page cache
page. Kmemleak does not scan such pages and it reports several false
positives. This patch annotates the string->name pointer so that
kmemleak does not consider it a real leak.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Bryan Schumaker <bjschuma@netapp.com>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c