This website works better with JavaScript.
Home
Explore
Help
Sign In
RuhNetConsulting
/
rtpengine
mirror of
https://github.com/sipwise/rtpengine
Watch
1
Star
1
Fork
0
Code
Issues
0
Projects
0
Releases
822
Wiki
Activity
Browse Source
MT#55283 safeguard against kmalloc failure
closes
#1797
Change-Id: I8036cad421d996b09e95946094fd43a55324778e
pull/1802/head
Richard Fuchs
2 years ago
parent
1e1f00412e
commit
6bdedc54ae
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
kernel-module/xt_RTPENGINE.c
+ 3
- 0
kernel-module/xt_RTPENGINE.c
View File
@ -1455,7 +1455,10 @@ static ssize_t proc_blist_read(struct file *f, char __user *b, size_t l, loff_t
if
(
!
g
)
goto
err
;
err
=
-
ENOMEM
;
opp
=
kzalloc
(
sizeof
(
*
opp
)
,
GFP_KERNEL
)
;
if
(
!
opp
)
goto
err
;
memcpy
(
&
opp
-
>
target
,
&
g
-
>
target
,
sizeof
(
opp
-
>
target
)
)
;
Write
Preview
Loading…
Cancel
Save