projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bb9f2e
)
ibmvnic: prefer strscpy over strlcpy
author
Lijun Pan
<lijunp213@gmail.com>
Thu, 11 Feb 2021 06:43:25 +0000
(
00:43
-0600)
committer
David S. Miller
<davem@davemloft.net>
Thu, 11 Feb 2021 21:03:00 +0000
(13:03 -0800)
Fix this warning:
WARNING: Prefer strscpy over strlcpy - see: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/
Signed-off-by: Lijun Pan <lijunp213@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ibm/ibmvnic.c
b/drivers/net/ethernet/ibm/ibmvnic.c
index 778e56e05cd7c150e56332e87433cf5bf534b378..1774fbaab1467d8854898161cdbdf228d7cfcfd7 100644
(file)
--- a/
drivers/net/ethernet/ibm/ibmvnic.c
+++ b/
drivers/net/ethernet/ibm/ibmvnic.c
@@
-2633,9
+2633,9
@@
static void ibmvnic_get_drvinfo(struct net_device *netdev,
{
struct ibmvnic_adapter *adapter = netdev_priv(netdev);
- str
l
cpy(info->driver, ibmvnic_driver_name, sizeof(info->driver));
- str
l
cpy(info->version, IBMVNIC_DRIVER_VERSION, sizeof(info->version));
- str
l
cpy(info->fw_version, adapter->fw_version,
+ str
s
cpy(info->driver, ibmvnic_driver_name, sizeof(info->driver));
+ str
s
cpy(info->version, IBMVNIC_DRIVER_VERSION, sizeof(info->version));
+ str
s
cpy(info->fw_version, adapter->fw_version,
sizeof(info->fw_version));
}