Skip to content

Commit

Permalink
dmaengine: idxd: Fix crc_val field for completion record
Browse files Browse the repository at this point in the history
[ Upstream commit dc901d9 ]

The crc_val in the completion record should be 64 bits and not 32 bits.

Fixes: 4ac823e ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
fyu1 authored and gregkh committed Dec 31, 2022
1 parent ab53749 commit 6e98a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/uapi/linux/idxd.h
Expand Up @@ -272,7 +272,7 @@ struct dsa_completion_record {
};

uint32_t delta_rec_size;
uint32_t crc_val;
uint64_t crc_val;

/* DIF check & strip */
struct {
Expand Down

0 comments on commit 6e98a93

Please sign in to comment.