Justin Stitt 8880e2666f net: dsa: lan9303: use ethtool_puts() for lan9303_get_strings()
This pattern of strncpy with some pointer arithmetic setting fixed-sized
intervals with string literal data is a bit weird so let's use
ethtool_puts() as this has more obvious behavior and is less-error
prone.

Nicely, we also get to drop a usage of the now deprecated strncpy() [1].

Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strncpy-on-nul-terminated-strings [1]
Link: https://github.com/KSPP/linux/issues/90
Suggested-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Justin Stitt <justinstitt@google.com>
Link: https://lore.kernel.org/r/20240425-strncpy-drivers-net-dsa-lan9303-core-c-v4-1-9fafd419d7bb@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-04-26 12:37:02 -07:00
..
2024-04-05 17:21:16 -07:00
2024-03-07 21:52:03 +00:00
2024-04-11 16:49:11 -07:00
2024-03-15 11:58:32 -07:00
2024-03-07 20:37:04 +00:00
2024-03-15 12:25:13 -07:00
2024-04-09 16:29:48 +02:00
2024-04-11 16:23:56 -07:00
2024-02-19 21:23:28 +01:00
2024-04-19 14:02:21 -07:00
2024-03-07 20:32:47 +00:00
2024-03-15 17:53:48 -07:00
2024-03-13 10:59:28 -07:00
2024-03-21 12:44:10 -07:00
2024-04-09 16:17:37 +02:00
2024-03-07 20:32:38 +00:00
2024-03-27 13:17:15 +01:00
2024-03-15 11:58:32 -07:00
2024-03-21 12:35:20 -07:00
2024-03-31 11:23:51 -07:00
2024-04-18 07:15:33 -07:00
2024-03-13 11:33:10 -07:00
2024-03-21 10:37:39 -07:00
2024-03-21 17:16:46 -07:00
2024-03-21 15:18:18 -07:00
2024-03-15 12:22:52 -07:00
2024-02-20 13:36:34 +01:00
2024-03-12 10:35:24 -07:00
2024-04-11 16:23:56 -07:00
2024-04-19 16:07:18 +02:00
2024-03-15 13:21:13 -07:00
2024-03-17 12:06:10 -07:00
2024-03-19 08:48:09 -07:00
2024-02-19 11:10:55 +01:00