Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Ruderich
passt-mac
Commits
0911d770
Commit
0911d770
authored
Aug 19, 2016
by
Simon Ruderich
Browse files
slsm: fix invalid krealloc parameter
Thanks afl.
parent
a802f9aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
security/slsm/tree.c
View file @
0911d770
...
...
@@ -206,7 +206,7 @@ int slsm_str_append(struct slsm_str *buf, const char *fmt, ...) {
if
(
new_size
>
(
ssize_t
)
new_size
)
return
-
EFBIG
;
new_buf
=
krealloc
(
&
buf
->
buf
,
new_size
,
GFP_KERNEL
);
new_buf
=
krealloc
(
buf
->
buf
,
new_size
,
GFP_KERNEL
);
if
(
!
new_buf
)
return
-
ENOMEM
;
...
...
Write
Preview
Supports
Markdown
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