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
Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git]
/
net
/
sched
/
cls_fw.c
diff --git
a/net/sched/cls_fw.c
b/net/sched/cls_fw.c
index
e6973d9
..
7547048
100644
(file)
--- a/
net/sched/cls_fw.c
+++ b/
net/sched/cls_fw.c
@@
-18,6
+18,7
@@
*
*/
*
*/
+#include <linux/config.h>
#include <linux/module.h>
#include <asm/uaccess.h>
#include <asm/system.h>
#include <linux/module.h>
#include <asm/uaccess.h>
#include <asm/system.h>
@@
-267,18
+268,20
@@
static int fw_change(struct tcf_proto *tp, unsigned long base,
return -EINVAL;
if (head == NULL) {
return -EINVAL;
if (head == NULL) {
- head = k
z
alloc(sizeof(struct fw_head), GFP_KERNEL);
+ head = k
m
alloc(sizeof(struct fw_head), GFP_KERNEL);
if (head == NULL)
return -ENOBUFS;
if (head == NULL)
return -ENOBUFS;
+ memset(head, 0, sizeof(*head));
tcf_tree_lock(tp);
tp->root = head;
tcf_tree_unlock(tp);
}
tcf_tree_lock(tp);
tp->root = head;
tcf_tree_unlock(tp);
}
- f = k
z
alloc(sizeof(struct fw_filter), GFP_KERNEL);
+ f = k
m
alloc(sizeof(struct fw_filter), GFP_KERNEL);
if (f == NULL)
return -ENOBUFS;
if (f == NULL)
return -ENOBUFS;
+ memset(f, 0, sizeof(*f));
f->id = handle;
f->id = handle;