1542ace44f8ae1880ebec8c7aadce5f3c85fcccf
[openwrt/openwrt.git] /
1 --- a/src/drv_mei_cpe_msg_process.c
2 +++ b/src/drv_mei_cpe_msg_process.c
3 @@ -3524,7 +3524,12 @@ IFX_int32_t MEI_IoctlCmdMsgWrite(
4 {
5 if (bInternCall)
6 {
7 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5,19,0))
8 memcpy(pDestPtr, pUserMsg->pPayload, pUserMsg->paylSize_byte);
9 +#else
10 + unsafe_memcpy(pDestPtr, pUserMsg->pPayload, pUserMsg->paylSize_byte,
11 + /* field-spanning writing is used here intentionally */);
12 +#endif
13 }
14 else
15 {