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

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

Merge "msm: adsprpc: Handle UAF in fastrpc_buf_free"

parents 811eb4ca 7cf8efc1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1017,8 +1017,8 @@ static void fastrpc_buf_free(struct fastrpc_buf *buf, int cache)
		}
		hlist_add_head(&buf->hn, &fl->cached_bufs);
		fl->num_cached_buf++;
		spin_unlock(&fl->hlock);
		buf->type = -1;
		spin_unlock(&fl->hlock);
		return;
	}
skip_buf_cache: