]> Git Repo - linux.git/commit - fs/lockd/svclock.c
lockd: fix a leak in nlmsvc_testlock asynchronous request handling
authorOleg Drokin <[email protected]>
Thu, 29 Nov 2007 19:02:21 +0000 (14:02 -0500)
committerJ. Bruce Fields <[email protected]>
Fri, 1 Feb 2008 21:42:06 +0000 (16:42 -0500)
commit29dbf546159f5701e11de26fa2da5c4a962e0f83
tree1dcdd1785445cbbf30a159a15b7b1d77f42c51c2
parent406a7ea97d9dc1a9348ba92c4cd0e7c678185c4c
lockd: fix a leak in nlmsvc_testlock asynchronous request handling

Without the patch, there is a leakage of nlmblock structure refcount
that holds a reference nlmfile structure, that holds a reference to
struct file, when async GETFL is used (-EINPROGRESS return from
file_ops->lock()), and also in some error cases.

Fix up a style nit while we're here.

Signed-off-by: Oleg Drokin <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
fs/lockd/svclock.c
This page took 0.052175 seconds and 4 git commands to generate.