projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8680e22
)
[PATCH] SELinux: memory leak in selinux_sb_copy_data()
author
Gerald Schaefer
<geraldsc@de.ibm.com>
Wed, 22 Jun 2005 00:15:18 +0000
(17:15 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 01:46:22 +0000
(18:46 -0700)
There is a memory leak during mount when SELinux is active and mount
options are specified.
Signed-off-by: Gerald Schaefer <geraldsc@de.ibm.com>
Acked-by: Stephen Smalley <sds@epoch.ncsc.mil>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
security/selinux/hooks.c
patch
|
blob
|
blame
|
history
diff --git
a/security/selinux/hooks.c
b/security/selinux/hooks.c
index db845cbd584138a25e569f78c7c11c4d587dafdc..87302a49067bd091d3bfa970524088b929f5e298 100644
(file)
--- a/
security/selinux/hooks.c
+++ b/
security/selinux/hooks.c
@@
-1945,6
+1945,7
@@
static int selinux_sb_copy_data(struct file_system_type *type, void *orig, void
} while (*in_end++);
copy_page(in_save, nosec_save);
+ free_page((unsigned long)nosec_save);
out:
return rc;
}