]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon - fix strncpy warning with strscpy
authorZhangfei Gao <zhangfei.gao@linaro.org>
Mon, 15 Jun 2020 03:38:37 +0000 (11:38 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Jun 2020 04:46:42 +0000 (14:46 +1000)
commit908ebf346c7107e906fede71583a5c7cf3c56953
tree55d67e389ce2a3bf6b58cd81d6ea7b85c54ba021
parent7c481df906330a777fbbb490590f20fff0cda63c
crypto: hisilicon - fix strncpy warning with strscpy

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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c