ethtool: get_glinksettings Fix copy (#8889)

It should be other way around.
This commit is contained in:
Susant Sahani 2018-05-03 20:50:56 +05:30 committed by Lennart Poettering
parent 3776f9cf00
commit 801d2c9f5d

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);