Commit 0a483f25 authored by Alessandro Rubini's avatar Alessandro Rubini

arch-wrs/shmem: clear the allocated memory

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent a3c8e5d5
......@@ -93,6 +93,7 @@ void *wrs_shm_alloc(void *headptr, size_t size)
return NULL; /* no space left */
nextptr = headptr + head->data_off + head->data_size;
head->data_size += (size + 7) & ~7; /* force 8-alignment */
memset(nextptr, 0, size);
return nextptr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment