]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 17 Apr 2011 20:16:17 +0000 (16:16 -0400)
commiteef557db3e67f4897c21423d4f2d41392458aa9c
treec3cf5d5ab982fdf0487eef9ac66bad97af1f57d8
parentc81ac5970095a62139f4904e638c304b220e76e5
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>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/sunrpc/cache.c