--- a/src/SDIO/driver_fw/driver/aic8800/aic8800_bsp/aic_bsp_driver.c +++ b/src/SDIO/driver_fw/driver/aic8800/aic8800_bsp/aic_bsp_driver.c @@ -16,6 +16,7 @@ #include #include #include +#include #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 12, 0) #include @@ -1364,7 +1365,8 @@ int aicbt_patch_info_unpack(struct aicbt patch_info->info_len = head_t->len; if(patch_info->info_len == 0) return 0; - memcpy(&patch_info->adid_addrinf, head_t->data, patch_info->info_len * sizeof(uint32_t) * 2); + unsafe_memcpy(&patch_info->adid_addrinf, head_t->data, + patch_info->info_len * sizeof(uint32_t) * 2, /* justification */); } return 0; }