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)
commit1e5f44616287b24a2c032274d6a5e3690dfd279b
treeef5b1c612ab409bdc4345bb515259121f038d6f6
parenteb464833a2e787996474ad33dafa2c5336d4c477
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