Skip to content

Commit 4dc19da

Browse files
committed
Merge: ethtool: phase-2 backports for RHEL-9.5
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/4654 JIRA: https://issues.redhat.com/browse/RHEL-46358 JIRA: https://issues.redhat.com/browse/RHEL-47900 CVE: CVE-2024-40928 Upstream Status: All mainline in net.git. Tested: boot-tested only Conflicts: None Signed-off-by: Davide Caratti <dcaratti@redhat.com> Approved-by: Sabrina Dubroca <sdubroca@redhat.com> Approved-by: Florian Westphal <fwestpha@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Lucas Zampieri <lzampier@redhat.com>
2 parents e60c2bb + 5c8d5f1 commit 4dc19da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/uapi/linux/ethtool_netlink.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ enum {
783783

784784
/* add new constants above here */
785785
__ETHTOOL_A_STATS_GRP_CNT,
786-
ETHTOOL_A_STATS_GRP_MAX = (__ETHTOOL_A_STATS_CNT - 1)
786+
ETHTOOL_A_STATS_GRP_MAX = (__ETHTOOL_A_STATS_GRP_CNT - 1)
787787
};
788788

789789
enum {

net/ethtool/ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2230,7 +2230,7 @@ static int ethtool_get_phy_stats_ethtool(struct net_device *dev,
22302230
const struct ethtool_ops *ops = dev->ethtool_ops;
22312231
int n_stats, ret;
22322232

2233-
if (!ops || !ops->get_sset_count || ops->get_ethtool_phy_stats)
2233+
if (!ops || !ops->get_sset_count || !ops->get_ethtool_phy_stats)
22342234
return -EOPNOTSUPP;
22352235

22362236
n_stats = ops->get_sset_count(dev, ETH_SS_PHY_STATS);

0 commit comments

Comments
 (0)