sunrpc/cache: fix module refcnt leak in a failure path
commitcffffe24025c34c22f9a13d6a1ad817401e5d824
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 11 Mar 2010 22:08:10 +0000 (11 14:08 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:45:08 +0000 (21 12:45 -0700)
tree09abc7288153c442ff5e47a561ebcef5fdbac7c0
parent37f7d55cdf298cca1da8f881d3cbf4eba1d3ba88
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