nvme-pci: fix page size checks
authorKeith Busch <kbusch@kernel.org>
Mon, 19 Dec 2022 21:54:55 +0000 (13:54 -0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 21 Dec 2022 08:17:30 +0000 (09:17 +0100)
commit841734234a28fd5cd0889b84bd4d93a0988fa11e
treeb364a44eec72d36d7ce14a603143f07803615c3e
parentc89a529e823d51dd23c7ec0c047c7a454a428541
nvme-pci: fix page size checks

The size allocated out of the dma pool is at most NVME_CTRL_PAGE_SIZE,
which may be smaller than the PAGE_SIZE.

Fixes: c61b82c7b7134 ("nvme-pci: fix PRP pool size")
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c