]> git.ipfire.org Git - thirdparty/kernel/linux.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)
commit1b1031ca63b2ce1d3b664b35b77ec94e458693e9
tree1b9d9e846749128f79474e6f1637e7551e798997
parent32fd90c407680935f84fb3ffc60fb3e020257d38
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