aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2018-10-08 14:28:41 -0700
committerChristoph Hellwig <[email protected]>2018-10-17 08:58:25 +0200
commitbb2a1d4e804aa41eef0003a192a674f844dbca23 (patch)
treefdfcb948583ac36643ff698f35d019189af742a6 /lib/memory-notifier-error-inject.c
parenteb090c4c948ccc7a051451261cf1426edf83f3eb (diff)
nvme-core: rework a NQN copying operation
Although it is easy to see that the code in nvme_init_subnqn() guarantees that the subsys->nqn string is '\0'-terminated, apparently Coverity is not smart enough to see this. Make it easier for Coverity to analyze this code by changing the strncpy() call into a strlcpy() call. This patch does not change the behavior of the code but fixes Coveritiy ID 1423720. Signed-off-by: Bart Van Assche <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions