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

Commit a1a010ce 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 894cba23 a7f46c9c
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -4498,6 +4498,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, !(err = fastrpc_munmap_on_dsp(fl, map->raddr,
			map->phys, map->size, map->flags)));
	if (err)