]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: validate cntlid during controller initialisation
authorChristoph Hellwig <hch@lst.de>
Thu, 9 May 2019 07:01:26 +0000 (09:01 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 14 May 2019 15:19:50 +0000 (17:19 +0200)
commitbb771bddf1e7b3f881f30cc1582c8f43c50fbfc1
tree1b9d9e846749128f79474e6f1637e7551e798997
parent8120330d1ecafe36f4ad9484c5e166597993ccff
nvme: validate cntlid during controller initialisation

The CNTLID value is required to be unique, and we do rely on this
for correct operation. So reject any controller for which a non-unique
CNTLID has been detected.

Based on a patch from Hannes Reinecke.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
drivers/nvme/host/core.c