|
@@ -348,7 +348,7 @@ static noinline_for_stack int ethtool_get_rxnfc(struct net_device *dev,
|
|
if (info.cmd == ETHTOOL_GRXCLSRLALL) {
|
|
if (info.cmd == ETHTOOL_GRXCLSRLALL) {
|
|
if (info.rule_cnt > 0) {
|
|
if (info.rule_cnt > 0) {
|
|
if (info.rule_cnt <= KMALLOC_MAX_SIZE / sizeof(u32))
|
|
if (info.rule_cnt <= KMALLOC_MAX_SIZE / sizeof(u32))
|
|
- rule_buf = kmalloc(info.rule_cnt * sizeof(u32),
|
|
|
|
|
|
+ rule_buf = kzalloc(info.rule_cnt * sizeof(u32),
|
|
GFP_USER);
|
|
GFP_USER);
|
|
if (!rule_buf)
|
|
if (!rule_buf)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|