Skip to content
Commit 4b8ef68e authored by Irvin Cote's avatar Irvin Cote Committed by Greg Kroah-Hartman
Browse files

nvme-pci: always return an ERR_PTR from nvme_pci_alloc_dev



[ Upstream commit dc785d69 ]

Don't mix NULL and ERR_PTR returns.

Fixes: 2e87570b ("nvme-pci: factor out a nvme_pci_alloc_dev helper")
Signed-off-by: default avatarIrvin Cote <irvin.cote@insa-lyon.fr>
Reviewed-by: default avatarKeith Busch <kbusch@kernel.org>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 1d7bc76b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment