lockd: fix reference count leaks in async locking case
authorOleg Drokin <green@linuxhacker.ru>
Mon, 26 Nov 2007 18:35:11 +0000 (13:35 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Fri, 1 Feb 2008 21:42:06 +0000 (16:42 -0500)
commitb7e6b86948df8d08d420558212e09eb449be9bfa
treeb9bce0e95a93a6b9142b55c647fb0fbe163a2130
parent404ec117be5d36e1a4c4582d0c518594333e32df
lockd: fix reference count leaks in async locking case

In a number of places where we wish only to translate nlm_drop_reply to
rpc_drop_reply errors we instead return early with rpc_drop_reply,
skipping some important end-of-function cleanup.

This results in reference count leaks when lockd is doing posix locking
on GFS2.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/lockd/svc4proc.c
fs/lockd/svcproc.c