projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a71af89
)
openvswitch: move from strlcpy with unused retval to strscpy
author
Wolfram Sang
<wsa+renesas@sang-engineering.com>
Thu, 18 Aug 2022 21:02:25 +0000
(23:02 +0200)
committer
Jakub Kicinski
<kuba@kernel.org>
Tue, 23 Aug 2022 01:07:12 +0000
(18:07 -0700)
Follow the advice of the below link and prefer 'strscpy' in this
subsystem. Conversion is 1:1 because the return value is not used.
Generated by a coccinelle script.
Link:
https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link:
https://lore.kernel.org/r/20220818210226.8587-1-wsa+renesas@sang-engineering.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/openvswitch/vport-internal_dev.c
patch
|
blob
|
history
diff --git
a/net/openvswitch/vport-internal_dev.c
b/net/openvswitch/vport-internal_dev.c
index 5b2ee9c1c00b11675a770c8e0829d0cbb4c012eb..134bc8503461c6e426e6158527f1c8db81388013 100644
(file)
--- a/
net/openvswitch/vport-internal_dev.c
+++ b/
net/openvswitch/vport-internal_dev.c
@@
-65,7
+65,7
@@
static int internal_dev_stop(struct net_device *netdev)
static void internal_dev_getinfo(struct net_device *netdev,
struct ethtool_drvinfo *info)
{
- str
l
cpy(info->driver, "openvswitch", sizeof(info->driver));
+ str
s
cpy(info->driver, "openvswitch", sizeof(info->driver));
}
static const struct ethtool_ops internal_dev_ethtool_ops = {