diff --git a/net/ethtool/ioctl.c b/net/ethtool/ioctl.c index 7bb94875a7ec87b3e2d882cb5df2416b9fad9d9..70461ff5c54cb787c2047ac4d67c6b0305db2b6 100644 --- a/net/ethtool/ioctl.c +++ b/net/ethtool/ioctl.c @@ -2060,7 +2060,7 @@ static int ethtool_get_ringparam(struct net_device *dev, void __user *useraddr) static int ethtool_set_ringparam(struct net_device *dev, void __user *useraddr) { struct ethtool_ringparam ringparam, max = { .cmd = ETHTOOL_GRINGPARAM }; - struct kernel_ethtool_ringparam kernel_ringparam; + struct kernel_ethtool_ringparam kernel_ringparam = {}; int ret; if (!dev->ethtool_ops->set_ringparam || !dev->ethtool_ops->get_ringparam)