]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] knfsd: lockd: fix refount on nsm
authorNeilBrown <neilb@suse.de>
Wed, 4 Oct 2006 09:16:15 +0000 (02:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 4 Oct 2006 14:55:20 +0000 (07:55 -0700)
commit2a34b3eaffa72ca803de5401d106e37778751d40
tree0a9e2d34f4fb089287b6d5b92cb438b30dd66293
parentee23d1b76cf59f4ef1c0725aa3fcef5fa1f7ce48
[PATCH] knfsd: lockd: fix refount on nsm

If nlm_lookup_host finds what it is looking for it exits with an extra
reference on the matching 'nsm' structure.

So don't actually count the reference until we are (fairly) sure it is going
to be used.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/lockd/host.c