]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: fix page size checks
authorKeith Busch <kbusch@kernel.org>
Mon, 19 Dec 2022 21:54:55 +0000 (13:54 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jan 2023 10:28:49 +0000 (11:28 +0100)
commite58a6f16df0cb1a48d7fe828b733c71554d28a65
tree8db7d16ddb782796d0a174c290136e0cf4aa7f4c
parentb0cff81bbc8211e7d23a4e078fec7d68653df3cf
nvme-pci: fix page size checks

[ Upstream commit 841734234a28fd5cd0889b84bd4d93a0988fa11e ]

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

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