Skip to content
Commit 5228b328 authored by Jan H. Schönherr's avatar Jan H. Schönherr Committed by Sagi Grimberg
Browse files

nvme: fix uninitialized prp2 value on small transfers



The value of iod->first_dma ends up as prp2 in NVMe commands. In case
there is not enough data to cross a page boundary, iod->first_dma is
never initialized and contains random data.

Comply with the NVMe specification and fill in 0 in that case.

Signed-off-by: default avatarJan H. Schönherr <jschoenh@amazon.de>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent a7b7c7a1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment