]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
nvme/pci: Fix write and poll queue types
authorKeith Busch <kbusch@kernel.org>
Fri, 6 Dec 2019 16:51:54 +0000 (01:51 +0900)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 30 Jan 2020 15:21:27 +0000 (16:21 +0100)
commit1b78cba88e50cf445b646ca4ff528ccc8903f2fb
treed2dcecc03645fc99b7bf2fe7209099c4cd9d875a
parent4c1e437838ae69b2863c66041c01782b32d01195
nvme/pci: Fix write and poll queue types

BugLink: https://bugs.launchpad.net/bugs/1860125
[ Upstream commit 3f68baf706ec68c4120867c25bc439c845fe3e17 ]

The number of poll or write queues should never be negative. Use unsigned
types so that it's not possible to break have the driver not allocate
any queues.

Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/nvme/host/pci.c