Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200858
b: refs/heads/master
c: db048b6
h: refs/heads/master
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Jun 29, 2010
1 parent 13e8d3e commit 84a31f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: c22d7ac844f1cb9c6a5fd20f89ebadc2feef891b
refs/heads/master: db048b69037e7fa6a7d9e95a1271a50dc08ae233
5 changes: 3 additions & 2 deletions trunk/net/core/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,9 @@ static noinline_for_stack int ethtool_get_rxnfc(struct net_device *dev,

if (info.cmd == ETHTOOL_GRXCLSRLALL) {
if (info.rule_cnt > 0) {
rule_buf = kmalloc(info.rule_cnt * sizeof(u32),
GFP_USER);
if (info.rule_cnt <= KMALLOC_MAX_SIZE / sizeof(u32))
rule_buf = kmalloc(info.rule_cnt * sizeof(u32),
GFP_USER);
if (!rule_buf)
return -ENOMEM;
}
Expand Down

0 comments on commit 84a31f8

Please sign in to comment.