]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvme-pci: always return an ERR_PTR from nvme_pci_alloc_dev
authorIrvin Cote <irvin.cote@insa-lyon.fr>
Thu, 9 Feb 2023 20:43:57 +0000 (17:43 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 11:18:20 +0000 (13:18 +0200)
commit9690ad557d9472a024f26a5f2980006c652e9b3f
tree71af382045d5ff47a65f45939cbfdcf901334e6c
parent3c29c6e8cd7cb83d9d2bbd3f51c6840112deb842
nvme-pci: always return an ERR_PTR from nvme_pci_alloc_dev

[ Upstream commit dc785d69d753a3894c93afc23b91404652382ead ]

Don't mix NULL and ERR_PTR returns.

Fixes: 2e87570be9d2 ("nvme-pci: factor out a nvme_pci_alloc_dev helper")
Signed-off-by: Irvin Cote <irvin.cote@insa-lyon.fr>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/pci.c