crypto/octeontx2: fix unaligned access to device memory
authorDanny Patel <dannyp@marvell.com>
Fri, 27 Aug 2021 05:33:58 +0000 (11:03 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Mon, 6 Sep 2021 19:46:34 +0000 (21:46 +0200)
commit05f157b8c5b469173712b0ab7daa91bbe52ec1df
treeb3ec9c5904c22e643a61c88f408ef6a5a450ba2c
parent12b253ee876f3e687524a12fd670ffc65f0aed4d
crypto/octeontx2: fix unaligned access to device memory

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