diff options
author | 2020-11-16 08:09:50 -0800 | |
---|---|---|
committer | 2020-11-16 08:11:05 -0800 | |
commit | c0a645a7f94409043b5b1d577590bee9b2ce5333 (patch) | |
tree | e14411f69739118166ce31ae3f307f2ab4b2435c /drivers/net/phy/phy.c | |
parent | r8169: improve rtl8169_start_xmit (diff) | |
parent | treewide: rename nla_strlcpy to nla_strscpy. (diff) | |
download | wireguard-linux-c0a645a7f94409043b5b1d577590bee9b2ce5333.tar.xz wireguard-linux-c0a645a7f94409043b5b1d577590bee9b2ce5333.zip |
Merge branch 'fix-inefficiences-and-rename-nla_strlcpy'
Francis Laniel says:
====================
Fix inefficiences and rename nla_strlcpy
This patch set answers to first three issues listed in:
https://github.com/KSPP/linux/issues/110
To sum up, the patch contributions are the following:
1. the first patch fixes an inefficiency where some bytes in dst were written
twice, one with 0 the other with src content.
2. The second one modifies nla_strlcpy to return the same value as strscpy,
i.e. number of bytes written or -E2BIG if src was truncated.
It also modifies code that calls nla_strlcpy and checks for its return value.
3. The third renames nla_strlcpy to nla_strscpy.
Unfortunately, I did not find how to create struct nlattr objects so I tested
my modifications on simple char* and with GDB using tc to get to
tcf_proto_check_kind.
====================
Link: https://lore.kernel.org/r/20201115170806.3578-1-laniel_francis@privacyrequired.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/phy/phy.c')
0 files changed, 0 insertions, 0 deletions