sunrpc/cache: fix module refcnt leak in a failure path
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 11 Mar 2010 22:08:10 +0000 (14:08 -0800)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 24 Mar 2010 14:40:46 +0000 (10:40 -0400)
commita5990ea1254cd186b38744507aeec3136a0c1c95
treed194df4b090b30d28075ac02f39a3dbc10628a2f
parent91885258e8343bb65c08f668d7e6c16563eb4284
sunrpc/cache: fix module refcnt leak in a failure path

Don't forget to release the module refcnt if seq_open() returns failure.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: J. Bruce Fields <bfields@fieldses.org>
Cc: Neil Brown <neilb@suse.de>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
net/sunrpc/cache.c