]> git.baikalelectronics.ru Git - 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)
committerKeith Busch <kbusch@kernel.org>
Fri, 6 Dec 2019 17:52:24 +0000 (02:52 +0900)
commitb2e22ae58489980b8197bed6d4f0e11f1f4be05b
treed4b8d28a41a1692e28c42911b22d2c14a1a63bb7
parent3e0f0020b7e723643a091bfcf7d5a474613f2594
nvme/pci: Fix write and poll queue types

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>
drivers/nvme/host/pci.c