Messages in this thread | | | Date | Fri, 26 Jun 2020 16:06:30 +1000 | From | Herbert Xu <> | Subject | Re: [PATCH v2] crypto: hisilicon - fix strncpy warning with strscpy |
| |
On Mon, Jun 15, 2020 at 11:38:37AM +0800, Zhangfei Gao wrote: > Use strscpy to fix the warning > warning: 'strncpy' specified bound 64 equals destination size > > Reported-by: kernel test robot <lkp@intel.com> > Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org> > --- > v2: Use strscpy instead of strlcpy since better truncation handling > suggested by Herbert > Rebase to 5.8-rc1 > > drivers/crypto/hisilicon/qm.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-)
Patch applied. Thanks. -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |