diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2024-02-18 15:49:55 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-02-21 11:15:12 +0000 |
commit | 8306ee08c0ff1c78672bcc645544f26f4d652cca (patch) | |
tree | 112ee2daa2de0fffa3d2d53962bbb064e59e273d /mm/hugetlb_vmemmap.h | |
parent | b0117d136bb9e4a1facb7ce354e0580dde876f6b (diff) |
tg3: copy only needed fields from userspace-provided EEE data
The current code overwrites fields in tp->eee with unchecked data from
edata, e.g. the bitmap with supported modes. ethtool properly returns
the received data from get_eee() call, but we have no guarantee that
other users of the ioctl set_eee() interface behave properly too.
Therefore copy only fields which are actually needed.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/hugetlb_vmemmap.h')
0 files changed, 0 insertions, 0 deletions