ethtool: get_glinksettings Fix copy (#8889)
It should be other way around.
This commit is contained in:
parent
3776f9cf00
commit
801d2c9f5d
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue