summaryrefslogtreecommitdiffstats
path: root/src/udev/net/ethtool-util.c
diff options
context:
space:
mode:
authorSusant Sahani <145210+ssahani@users.noreply.github.com>2018-05-03 17:20:56 +0200
committerLennart Poettering <lennart@poettering.net>2018-05-03 17:20:56 +0200
commit801d2c9f5de04fdc7e95a0dafc771903923f0304 (patch)
treea7646e66cba88a15b4198b4b9d80b2e07d599caf /src/udev/net/ethtool-util.c
parentMerge pull request #8859 from poettering/virt-xen-lying (diff)
downloadsystemd-801d2c9f5de04fdc7e95a0dafc771903923f0304.tar.xz
systemd-801d2c9f5de04fdc7e95a0dafc771903923f0304.zip
ethtool: get_glinksettings Fix copy (#8889)
It should be other way around.
Diffstat (limited to '')
-rw-r--r--src/udev/net/ethtool-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/net/ethtool-util.c b/src/udev/net/ethtool-util.c
index f4be37eac1..ccea64b573 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);