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
/
ipv4
/
fib_hash.c
diff --git
a/net/ipv4/fib_hash.c
b/net/ipv4/fib_hash.c
index
6350e29
..
c9b54bb
100644
(file)
--- a/
net/ipv4/fib_hash.c
+++ b/
net/ipv4/fib_hash.c
@@
-15,6
+15,7
@@
* 2 of the License, or (at your option) any later version.
*/
* 2 of the License, or (at your option) any later version.
*/
+#include <linux/config.h>
#include <asm/uaccess.h>
#include <asm/system.h>
#include <linux/bitops.h>
#include <asm/uaccess.h>
#include <asm/system.h>
#include <linux/bitops.h>
@@
-204,10
+205,11
@@
static struct fn_zone *
fn_new_zone(struct fn_hash *table, int z)
{
int i;
fn_new_zone(struct fn_hash *table, int z)
{
int i;
- struct fn_zone *fz = k
z
alloc(sizeof(struct fn_zone), GFP_KERNEL);
+ struct fn_zone *fz = k
m
alloc(sizeof(struct fn_zone), GFP_KERNEL);
if (!fz)
return NULL;
if (!fz)
return NULL;
+ memset(fz, 0, sizeof(struct fn_zone));
if (z) {
fz->fz_divisor = 16;
} else {
if (z) {
fz->fz_divisor = 16;
} else {
@@
-1048,7
+1050,7
@@
static int fib_seq_open(struct inode *inode, struct file *file)
{
struct seq_file *seq;
int rc = -ENOMEM;
{
struct seq_file *seq;
int rc = -ENOMEM;
- struct fib_iter_state *s = k
z
alloc(sizeof(*s), GFP_KERNEL);
+ struct fib_iter_state *s = k
m
alloc(sizeof(*s), GFP_KERNEL);
if (!s)
goto out;
if (!s)
goto out;
@@
-1059,6
+1061,7
@@
static int fib_seq_open(struct inode *inode, struct file *file)
seq = file->private_data;
seq->private = s;
seq = file->private_data;
seq->private = s;
+ memset(s, 0, sizeof(*s));
out:
return rc;
out_kfree:
out:
return rc;
out_kfree: