Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e25b915 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: adsprpc: Allocate buffer taking NULL byte into consideration"

parents f25e6871 4d5a6020
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3818,7 +3818,7 @@ static int fastrpc_init_create_static_process(struct fastrpc_file *fl,
	if (!init->filelen)
	if (!init->filelen)
		goto bail;
		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));
	VERIFY(err, !IS_ERR_OR_NULL(proc_name));
	if (err) {
	if (err) {
		err = -ENOMEM;
		err = -ENOMEM;