Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-switch-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
wr-switch-sw
Commits
9f4217ad
Commit
9f4217ad
authored
Dec 05, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace: clear mem allocated in shmem
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
b61aa691
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
shmem.c
userspace/libwr/shmem.c
+1
-0
ppsi
userspace/ppsi
+1
-1
No files found.
userspace/libwr/shmem.c
View file @
9f4217ad
...
...
@@ -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
;
}
...
...
ppsi
@
0a483f25
Subproject commit
513151b2fd2302d122aeb120c805002cb6574e12
Subproject commit
0a483f25e75a68b2e30afdc943fedbd587f15b26
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment