diff options
author | Lei Rao <lei.rao@intel.com> | 2022-11-29 12:48:11 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-12-19 14:36:44 +0300 |
commit | de0866b94a646da85c9c55a4109bfcd94d2a38a0 (patch) | |
tree | 40bffeea2f237dafb0498d75d2b0f794777a36fb /drivers/media/usb | |
parent | 8bffa95ac19ff27c8261904f89d36c7fcf215d59 (diff) | |
download | linux-de0866b94a646da85c9c55a4109bfcd94d2a38a0.tar.xz |
nvme-pci: clear the prp2 field when not used
[ Upstream commit a56ea6147facce4ac1fc38675455f9733d96232b ]
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>
Diffstat (limited to 'drivers/media/usb')
0 files changed, 0 insertions, 0 deletions