mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00
21 lines
746 B
Diff
21 lines
746 B
Diff
--- a/src/USB/driver_fw/drivers/aic8800/aic_load_fw/aicbluetooth.c
|
|
+++ b/src/USB/driver_fw/drivers/aic8800/aic_load_fw/aicbluetooth.c
|
|
@@ -8,6 +8,7 @@
|
|
#ifdef CONFIG_USE_FW_REQUEST
|
|
#include <linux/firmware.h>
|
|
#endif
|
|
+#include <linux/string.h>
|
|
|
|
//Parser state
|
|
#define INIT 0
|
|
@@ -1227,7 +1228,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;
|
|
}
|