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_fib.c
diff --git
a/net/decnet/dn_fib.c
b/net/decnet/dn_fib.c
index
fa20e2e
..
bd4ce86
100644
(file)
--- a/
net/decnet/dn_fib.c
+++ b/
net/decnet/dn_fib.c
@@
-17,6
+17,7
@@
* this code was copied from it.
*
*/
* this code was copied from it.
*
*/
+#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>
@@
-283,10
+284,11
@@
struct dn_fib_info *dn_fib_create_info(const struct rtmsg *r, struct dn_kern_rta
goto err_inval;
}
goto err_inval;
}
- fi = k
z
alloc(sizeof(*fi)+nhs*sizeof(struct dn_fib_nh), GFP_KERNEL);
+ fi = k
m
alloc(sizeof(*fi)+nhs*sizeof(struct dn_fib_nh), GFP_KERNEL);
err = -ENOBUFS;
if (fi == NULL)
goto failure;
err = -ENOBUFS;
if (fi == NULL)
goto failure;
+ memset(fi, 0, sizeof(*fi)+nhs*sizeof(struct dn_fib_nh));
fi->fib_protocol = r->rtm_protocol;
fi->fib_nhs = nhs;
fi->fib_protocol = r->rtm_protocol;
fi->fib_nhs = nhs;