ethtool: get_glinksettings Fix copy (#8889)

It should be other way around.
This commit is contained in:
Susant Sahani
2018-05-03 17:20:56 +02:00
committed by Lennart Poettering
parent 3776f9cf00
commit 801d2c9f5d
+1 -1
View File
@@ -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);