]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NLM: Fix a memory leak in nlmsvc_testlock
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 9 Oct 2007 14:55:45 +0000 (10:55 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 10 Oct 2007 17:50:17 +0000 (10:50 -0700)
commita39ebeebe475be5d22aa1f2aeb7ae95c3efe9cd7
tree5758eb344f50019d42023d0311c75e6d83bb7173
parentb44da25c30867fa71f2cec3334ecfa1e9412dab4
NLM: Fix a memory leak in nlmsvc_testlock

changeset a6d85430424d44e946e0946bfaad607115510989 in upstream

The recent fix for a circular lock dependency unfortunately introduced a
potential memory leak in the event where the call to nlmsvc_lookup_host
fails for some reason.

Thanks to Roel Kluin for spotting this.

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