Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211500
b: refs/heads/master
c: b00916b
h: refs/heads/master
v: v3
  • Loading branch information
Kees Cook authored and David S. Miller committed Oct 11, 2010
1 parent 1b30f70 commit bb0c313
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0aa7deadffd8b596983a3abe29a218b4c5f43301
refs/heads/master: b00916b189d13a615ff05c9242201135992fcda3
6 changes: 3 additions & 3 deletions trunk/net/core/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ static noinline_for_stack int ethtool_get_rxfh_indir(struct net_device *dev,
(KMALLOC_MAX_SIZE - sizeof(*indir)) / sizeof(*indir->ring_index))
return -ENOMEM;
full_size = sizeof(*indir) + sizeof(*indir->ring_index) * table_size;
indir = kmalloc(full_size, GFP_USER);
indir = kzalloc(full_size, GFP_USER);
if (!indir)
return -ENOMEM;

Expand Down Expand Up @@ -538,7 +538,7 @@ static int ethtool_get_rx_ntuple(struct net_device *dev, void __user *useraddr)

gstrings.len = ret;

data = kmalloc(gstrings.len * ETH_GSTRING_LEN, GFP_USER);
data = kzalloc(gstrings.len * ETH_GSTRING_LEN, GFP_USER);
if (!data)
return -ENOMEM;

Expand Down Expand Up @@ -775,7 +775,7 @@ static int ethtool_get_regs(struct net_device *dev, char __user *useraddr)
if (regs.len > reglen)
regs.len = reglen;

regbuf = kmalloc(reglen, GFP_USER);
regbuf = kzalloc(reglen, GFP_USER);
if (!regbuf)
return -ENOMEM;

Expand Down

0 comments on commit bb0c313

Please sign in to comment.