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

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

Merge "msm:ADSPRPC :Fix to avoid Use after free in fastrpc_internal_munmap"

parents 808e2a7d 4f764fbf
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -3315,6 +3315,11 @@ static int fastrpc_internal_munmap(struct fastrpc_file *fl,
	mutex_unlock(&fl->map_mutex);
	if (err)
		goto bail;
	VERIFY(err, map != NULL);
	if (err) {
		err = -EINVAL;
		goto bail;
	}
	VERIFY(err, !fastrpc_munmap_on_dsp(fl, map->raddr,
			map->phys, map->size, map->flags));
	if (err)