]> git.baikalelectronics.ru Git - kernel.git/commit
NLM: Fix a memory leak in nlmsvc_testlock
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 9 Oct 2007 15:04:57 +0000 (11:04 -0400)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 9 Oct 2007 19:38:26 +0000 (12:38 -0700)
commitebbec9eec8d1c901a8c04b134ad58732326ee553
treef324085c0d92fb8ebae928bab3a5f0b480a3bb4a
parentd9a0b76a4947c82705de840c0f012c4551b8e8c0
NLM: Fix a memory leak in nlmsvc_testlock

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