Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
0a483f25
Commit
0a483f25
authored
Dec 05, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch-wrs/shmem: clear the allocated memory
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
a3c8e5d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
shmem.c
arch-wrs/shmem.c
+1
-0
No files found.
arch-wrs/shmem.c
View file @
0a483f25
...
...
@@ -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
;
}
...
...
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