dmaengine: idxd: Fix crc_val field for completion record
authorFenghua Yu <fenghua.yu@intel.com>
Fri, 11 Nov 2022 01:27:15 +0000 (17:27 -0800)
committerVinod Koul <vkoul@kernel.org>
Sun, 13 Nov 2022 22:26:37 +0000 (03:56 +0530)
The crc_val in the completion record should be 64 bits and not 32 bits.

Fixes: 4ac823e9cd85 ("dmaengine: idxd: fix delta_rec and crc size field for completion record")
Reported-by: Nirav N Shah <nirav.n.shah@intel.com>
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20221111012715.2031481-1-fenghua.yu@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
include/uapi/linux/idxd.h

index 2b9e7feba3f32ed84dcc0bdbc1d85128298f4ec7..1d553bedbdb515147b767479a06469ca7c048ef9 100644 (file)
@@ -295,7 +295,7 @@ struct dsa_completion_record {
                };
 
                uint32_t        delta_rec_size;
-               uint32_t        crc_val;
+               uint64_t        crc_val;
 
                /* DIF check & strip */
                struct {