git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
security
/
selinux
/
ss
/
hashtab.c
diff --git
a/security/selinux/ss/hashtab.c
b/security/selinux/ss/hashtab.c
index
26661fc
..
24e5ec9
100644
(file)
--- a/
security/selinux/ss/hashtab.c
+++ b/
security/selinux/ss/hashtab.c
@@
-15,11
+15,10
@@
struct hashtab *hashtab_create(u32 (*hash_value)(struct hashtab *h, void *key),
struct hashtab *p;
u32 i;
struct hashtab *p;
u32 i;
- p = k
m
alloc(sizeof(*p), GFP_KERNEL);
+ p = k
z
alloc(sizeof(*p), GFP_KERNEL);
if (p == NULL)
return p;
if (p == NULL)
return p;
- memset(p, 0, sizeof(*p));
p->size = size;
p->nel = 0;
p->hash_value = hash_value;
p->size = size;
p->nel = 0;
p->hash_value = hash_value;
@@
-55,10
+54,9
@@
int hashtab_insert(struct hashtab *h, void *key, void *datum)
if (cur && (h->keycmp(h, key, cur->key) == 0))
return -EEXIST;
if (cur && (h->keycmp(h, key, cur->key) == 0))
return -EEXIST;
- newnode = k
m
alloc(sizeof(*newnode), GFP_KERNEL);
+ newnode = k
z
alloc(sizeof(*newnode), GFP_KERNEL);
if (newnode == NULL)
return -ENOMEM;
if (newnode == NULL)
return -ENOMEM;
- memset(newnode, 0, sizeof(*newnode));
newnode->key = key;
newnode->datum = datum;
if (prev) {
newnode->key = key;
newnode->datum = datum;
if (prev) {