mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
Merge "msm: adsprpc: Allocate buffer taking NULL byte into consideration"
This commit is contained in:
commit
8e25b91508
1 changed files with 1 additions and 1 deletions
|
|
@ -3818,7 +3818,7 @@ static int fastrpc_init_create_static_process(struct fastrpc_file *fl,
|
|||
if (!init->filelen)
|
||||
goto bail;
|
||||
|
||||
proc_name = kzalloc(init->filelen, GFP_KERNEL);
|
||||
proc_name = kzalloc(init->filelen + 1, GFP_KERNEL);
|
||||
VERIFY(err, !IS_ERR_OR_NULL(proc_name));
|
||||
if (err) {
|
||||
err = -ENOMEM;
|
||||
|
|
|
|||
Loading…
Reference in a new issue