mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00
21 lines
799 B
Diff
21 lines
799 B
Diff
--- 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 <linux/delay.h>
|
|
#include <linux/vmalloc.h>
|
|
#include <linux/firmware.h>
|
|
+#include <linux/string.h>
|
|
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 12, 0)
|
|
#include <linux/hardirq.h>
|
|
@@ -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;
|
|
}
|