linux/drivers/nvme
Lei Rao de0866b94a nvme-pci: clear the prp2 field when not used
[ Upstream commit a56ea6147f ]

If the prp2 field is not filled in nvme_setup_prp_simple(), the prp2
field is garbage data. According to nvme spec, the prp2 is reserved if
the data transfer does not cross a memory page boundary, so clear it to
zero if it is not used.

Signed-off-by: Lei Rao <lei.rao@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-19 12:36:44 +01:00
..
host nvme-pci: clear the prp2 field when not used 2022-12-19 12:36:44 +01:00
target nvmet: fix memory leak in nvmet_subsys_attr_model_store_locked 2022-12-02 17:41:02 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00