From: Susant Sahani <145210+ssahani@users.noreply.github.com> Date: Thu, 3 May 2018 15:20:56 +0000 (+0530) Subject: ethtool: get_glinksettings Fix copy (#8889) X-Git-Tag: v239~315 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=801d2c9f5de04fdc7e95a0dafc771903923f0304;p=thirdparty%2Fsystemd.git ethtool: get_glinksettings Fix copy (#8889) It should be other way around. --- diff --git a/src/udev/net/ethtool-util.c b/src/udev/net/ethtool-util.c index f4be37eac18..ccea64b5735 100644 --- a/src/udev/net/ethtool-util.c +++ b/src/udev/net/ethtool-util.c @@ -403,7 +403,7 @@ static int get_glinksettings(int fd, struct ifreq *ifr, struct ethtool_link_uset if (!u) return -ENOMEM; - ecmd.req = u->base; + u->base = ecmd.req; offset = 0; memcpy(u->link_modes.supported, &ecmd.link_mode_data[offset], 4 * ecmd.req.link_mode_masks_nwords);