staging: octeon: convert all uses of strlcpy to strscpy in ethernet-mdio.c
PATCH v2 1/1 staging: octeon: convert all uses of strlcpy to strscpy in ethernet-mdio.c
Convert three calls to strlcpy inside the cvm_oct_get_drvinfo function to strscpy calls. As return values were not checked for these three calls before, change should be safe as functionality is equivalent.
--- drivers/staging/octeon/ethernet-mdio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/octeon/ethernet-mdio.c +3 -3
@@ -21,9 +21,9 @@static void cvm_oct_get_drvinfo (struct net_device *dev,struct ethtool_drvinfo *info) { -strlcpy (info->driver,KBUILD_MODNAME ,sizeof (info->driver)); -strlcpy (info->version,UTS_RELEASE ,sizeof (info->version)); -strlcpy (info->bus_info,"Builtin" ,sizeof (info->bus_info)); +strscpy (info->driver,KBUILD_MODNAME ,sizeof (info->driver)); +strscpy (info->version,UTS_RELEASE ,sizeof (info->version)); +strscpy (info->bus_info,"Builtin" ,sizeof (info->bus_info)); }static int cvm_oct_nway_reset (struct net_device *dev)
Signature · 1 line
2.29.2
Greg KH
maintainerQuoted 28 lines · Phillip Potter
Convert three calls to strlcpy inside the
cvm_oct_get_drvinfofunction to strscpy calls. As return values were not checked for these three calls before, change should be safe as functionality is equivalent.Signed-off-by Phillip Potter <[email protected]>--- drivers/staging/octeon/ethernet-mdio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/staging/octeon/ethernet-mdio.c +3
-3@@ -21,9 +21,9 @@static void cvm_oct_get_drvinfo (struct net_device *dev,struct ethtool_drvinfo *info) { -strlcpy (info->driver,KBUILD_MODNAME ,sizeof (info->driver)); -strlcpy (info->version,UTS_RELEASE ,sizeof (info->version)); -strlcpy (info->bus_info,"Builtin" ,sizeof (info->bus_info)); +strscpy (info->driver,KBUILD_MODNAME ,sizeof (info->driver)); +strscpy (info->version,UTS_RELEASE ,sizeof (info->version)); +strscpy (info->bus_info,"Builtin" ,sizeof (info->bus_info)); }static int cvm_oct_nway_reset (struct net_device *dev)Signature · 1 line
2.29.2
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree.
You are receiving this message because of the following common error(s) as indicated below:
- This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what needs to be done here to properly describe this.
If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers.
thanks,
greg k-h's patch email bot