Zero the input buffer

This commit is contained in:
Palmer Dabbelt 2018-06-01 00:30:11 -07:00
parent 7a8e6f7868
commit fb9a43d93e
1 changed files with 2 additions and 0 deletions

View File

@ -2024,6 +2024,8 @@ static int read_memory_progbuf(struct target *target, target_addr_t address,
select_dmi(target);
memset(buffer, 0, count*size);
/* s0 holds the next address to write to
* s1 holds the next data value to write
*/