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

Commit 1e05ffb3 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 826d77fc cd8a4c01
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2673,7 +2673,7 @@ static int fastrpc_init_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)
			goto bail;