git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12b253e
)
crypto/octeontx2: fix unaligned access to device memory
author
Danny Patel
<dannyp@marvell.com>
Fri, 27 Aug 2021 05:33:58 +0000
(11:03 +0530)
committer
Akhil Goyal
<gakhil@marvell.com>
Mon, 6 Sep 2021 19:46:34 +0000
(21:46 +0200)
Use otx2_mbox_memcpy() instead of memcpy() to prevent unaligned access.
Fixes:
a0645ed0d6ef
("crypto/octeontx2: discover capabilities")
Cc: stable@dpdk.org
Signed-off-by: Danny Patel <dannyp@marvell.com>
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
drivers/crypto/octeontx2/otx2_cryptodev_mbox.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/octeontx2/otx2_cryptodev_mbox.c
b/drivers/crypto/octeontx2/otx2_cryptodev_mbox.c
index
812515f
..
1a8edae
100644
(file)
--- a/
drivers/crypto/octeontx2/otx2_cryptodev_mbox.c
+++ b/
drivers/crypto/octeontx2/otx2_cryptodev_mbox.c
@@
-37,7
+37,7
@@
otx2_cpt_hardware_caps_get(const struct rte_cryptodev *dev,
}
vf->cpt_revision = rsp->cpt_revision;
- memcpy(hw_caps, rsp->eng_caps,
+
otx2_mbox_
memcpy(hw_caps, rsp->eng_caps,
sizeof(union cpt_eng_caps) * CPT_MAX_ENG_TYPES);
return 0;