OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
188ccb5
)
[AFS]: Fix memory leak in SRXAFSCB_GetCapabilities
author
Patrick McHardy
<kaber@trash.net>
Thu, 3 May 2007 10:27:39 +0000
(
03:27
-0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 3 May 2007 10:27:39 +0000
(
03:27
-0700)
The interface array is not freed on exit.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/afs/cmservice.c
patch
|
blob
|
history
diff --git
a/fs/afs/cmservice.c
b/fs/afs/cmservice.c
index
6685f4c
..
d5b2ad6
100644
(file)
--- a/
fs/afs/cmservice.c
+++ b/
fs/afs/cmservice.c
@@
-443,6
+443,7
@@
static void SRXAFSCB_GetCapabilities(struct work_struct *work)
reply.ia.netmask[loop] = ifs[loop].netmask.s_addr;
reply.ia.mtu[loop] = htonl(ifs[loop].mtu);
}
+ kfree(ifs);
}
reply.cap.capcount = htonl(1);