1 Patch-mainline: submitted 04aug2009
3 From: NeilBrown <neilb@suse.de>
4 Date: Tue, 4 Aug 2009 15:06:39 +1000
5 Subject: [PATCH 10/12] sunrpc: fix memory leak in unix_gid cache.
7 When we look up an entry in the uid->gidlist cache, we take
8 a reference to the content but don't drop the reference to the
9 cache entry. So it never gets freed.
11 Signed-off-by: NeilBrown <neilb@suse.de>
14 net/sunrpc/svcauth_unix.c | 1 +
15 1 file changed, 1 insertion(+)
17 --- linux-2.6.27-SLE11_BRANCH.orig/net/sunrpc/svcauth_unix.c
18 +++ linux-2.6.27-SLE11_BRANCH/net/sunrpc/svcauth_unix.c
19 @@ -670,6 +670,7 @@ static int unix_gid_find(uid_t uid, stru
23 + cache_put(&ug->h, &unix_gid_cache);