]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 2 Mar 2011 14:46:44 +0000 (09:46 -0500)
commitfe20aa6ef8389723f01d6bcbb000d14646741241
tree90890dc0f6a94d7d463de437d5901493c405dd4a
parent5a4cce8c4489c6a270f37aa198c22ad9988ee8ab
sunrpc/cache: fix module refcnt leak in a failure path

commit a5990ea1254cd186b38744507aeec3136a0c1c95 upstream.

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>
Cc: maximilian attems <max@stro.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sunrpc/cache.c