]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.31/patches.fixes/nfsd-08-sunrpc-fix-memory-leak-in-unix_gid-cache.patch
Change qemu to a version that support kvm and kqemu.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.fixes / nfsd-08-sunrpc-fix-memory-leak-in-unix_gid-cache.patch
CommitLineData
2cb7cef9
BS
1Patch-mainline: submitted 04aug2009
2References: bnc#498708
3From: NeilBrown <neilb@suse.de>
4Date: Tue, 4 Aug 2009 15:06:39 +1000
5Subject: [PATCH 10/12] sunrpc: fix memory leak in unix_gid cache.
6
7When we look up an entry in the uid->gidlist cache, we take
8a reference to the content but don't drop the reference to the
9cache entry. So it never gets freed.
10
11Signed-off-by: NeilBrown <neilb@suse.de>
12
13---
14 net/sunrpc/svcauth_unix.c | 1 +
15 1 file changed, 1 insertion(+)
16
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
20 case 0:
21 *gip = ug->gi;
22 get_group_info(*gip);
23+ cache_put(&ug->h, &unix_gid_cache);
24 return 0;
25 case -ETIMEDOUT:
26 prevug = ug;