nvme: fix KASAN warning when parsing host nqn
authorHannes Reinecke <hare@suse.de>
Fri, 25 May 2018 09:04:03 +0000 (11:04 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 May 2018 14:50:12 +0000 (16:50 +0200)
commit7a29e184b6543ecafeef25304a948118fd0c9165
treeef5b1c612ab409bdc4345bb515259121f038d6f6
parente0f3709a60e48093c5a5361e62b34c5990a77653
nvme: fix KASAN warning when parsing host nqn

The host nqn actually is smaller than the space reserved for it,
so we should be using strlcpy to keep KASAN happy.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fabrics.c