Vladimir Oltean d5d5fd8f25 net: move copy_from_user() out of net_hwtstamp_validate()
The kernel will want to start using the more meaningful struct
hwtstamp_config pointer in more places, so move the copy_from_user() at
the beginning of dev_set_hwtstamp() in order to get to that, and pass
this argument to net_hwtstamp_validate().

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-04-03 10:04:26 +01:00
..
2021-12-16 07:18:35 -08:00
2023-02-20 11:39:59 +00:00
2022-11-21 20:36:30 -08:00
2023-03-07 09:33:43 -08:00
2022-12-12 15:04:39 -08:00
2023-03-23 16:03:33 -07:00