]> 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)
commitdb7832afb6a0797e15aa05c6dab49465cb1f914e
treed4b8d28a41a1692e28c42911b22d2c14a1a63bb7
parent096a4cc3385709ab1bcab20d31afbfba4009f242
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