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
/
decnet
/
dn_rules.c
diff --git
a/net/decnet/dn_rules.c
b/net/decnet/dn_rules.c
index
6986be7
..
2440d05
100644
(file)
--- a/
net/decnet/dn_rules.c
+++ b/
net/decnet/dn_rules.c
@@
-13,6
+13,7
@@
* Changes:
*
*/
* Changes:
*
*/
+#include <linux/config.h>
#include <linux/string.h>
#include <linux/net.h>
#include <linux/socket.h>
#include <linux/string.h>
#include <linux/net.h>
#include <linux/socket.h>
@@
-151,9
+152,10
@@
int dn_fib_rtm_newrule(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
}
}
}
}
- new_r = k
z
alloc(sizeof(*new_r), GFP_KERNEL);
+ new_r = k
m
alloc(sizeof(*new_r), GFP_KERNEL);
if (!new_r)
return -ENOMEM;
if (!new_r)
return -ENOMEM;
+ memset(new_r, 0, sizeof(*new_r));
if (rta[RTA_SRC-1])
memcpy(&new_r->r_src, RTA_DATA(rta[RTA_SRC-1]), 2);
if (rta[RTA_SRC-1])
memcpy(&new_r->r_src, RTA_DATA(rta[RTA_SRC-1]), 2);