diff options
| author | Kees Cook <[email protected]> | 2024-07-11 16:54:32 +0000 |
|---|---|---|
| committer | Shuah Khan <[email protected]> | 2024-07-12 16:11:48 +0000 |
| commit | 7554a7b96dc0dcc445d4af7077c96c6ab0988c79 (patch) | |
| tree | bcd0d2c6b0ed34392dfc15f22f6aea58e7b26ef7 /drivers/net/ethernet/intel/ice/ice_lib.c | |
| parent | kunit/usercopy: Add missing MODULE_DESCRIPTION() (diff) | |
| download | kernel-7554a7b96dc0dcc445d4af7077c96c6ab0988c79.tar.gz kernel-7554a7b96dc0dcc445d4af7077c96c6ab0988c79.zip | |
kunit: executor: Simplify string allocation handling
The alloc/copy code pattern is better consolidated to single kstrdup (and
kstrndup) calls instead. This gets rid of deprecated[1] strncpy() uses as
well. Replace one other strncpy() use with the more idiomatic strscpy().
Link: https://github.com/KSPP/linux/issues/90 [1]
Reviewed-by: David Gow <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions
