mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 01:59:02 +00:00
7bc487c12e
We need to use unsafe_memcpy() here, because the code do the field- spanning write intentionally. Signed-off-by: Martin Schiller <ms@dev.tdt.de>
16 lines
498 B
Diff
16 lines
498 B
Diff
--- a/src/drv_mei_cpe_msg_process.c
|
|
+++ b/src/drv_mei_cpe_msg_process.c
|
|
@@ -3524,7 +3524,12 @@ IFX_int32_t MEI_IoctlCmdMsgWrite(
|
|
{
|
|
if (bInternCall)
|
|
{
|
|
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5,19,0))
|
|
memcpy(pDestPtr, pUserMsg->pPayload, pUserMsg->paylSize_byte);
|
|
+#else
|
|
+ unsafe_memcpy(pDestPtr, pUserMsg->pPayload, pUserMsg->paylSize_byte,
|
|
+ /* field-spanning writing is used here intentionally */);
|
|
+#endif
|
|
}
|
|
else
|
|
{
|