Skip to content

Commit 2eb2579

Browse files
finikorgjhedberg
authored andcommitted
soc: intel_apl_adsp: Fix memory corruption
sizeof(sram) is the size of the whole structure. Signed-off-by: Andrei Emeltchenko <[email protected]>
1 parent d64b3fb commit 2eb2579

File tree

1 file changed

+1
-2
lines changed
  • soc/xtensa/intel_apl_adsp

1 file changed

+1
-2
lines changed

soc/xtensa/intel_apl_adsp/adsp.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ static void send_fw_ready(void)
9898
&fw_ready_apl, sizeof(fw_ready_apl));
9999

100100
memcpy((void *)(MAILBOX_DSPBOX_BASE + sizeof(fw_ready_apl)),
101-
&sram_window,
102-
(sizeof(sram_window) + sram_window.ext_hdr.hdr.size));
101+
&sram_window, sizeof(sram_window));
103102

104103
SOC_DCACHE_FLUSH((void *)MAILBOX_DSPBOX_BASE, MAILBOX_DSPBOX_SIZE);
105104

0 commit comments

Comments
 (0)