]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: pad fake subsys NQN vid and ssvid with zeros
authorKeith Busch <keith.busch@intel.com>
Tue, 8 Jan 2019 16:37:43 +0000 (09:37 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 Jan 2019 18:47:06 +0000 (13:47 -0500)
commitbad319e51031157915b9508b315112df02cdf370
tree49d06317a61c51315b92cf10016cd7fdabd870c8
parent693aab4fdd4e0656632348ae8a9c75324cb38d5c
nvme: pad fake subsys NQN vid and ssvid with zeros

We need to preserve the leading zeros in the vid and ssvid when generating
a unique NQN. Truncating these may lead to naming collisions.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c