mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
gallium/util: avoid unreferencing random memory on buffer alloc failure
Found by Coverity Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Albert Freeman <albertwdfreeman@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
6dd059fefe
commit
5bff12ecb4
1 changed files with 1 additions and 1 deletions
|
|
@ -2065,7 +2065,7 @@ void util_blitter_clear_buffer(struct blitter_context *blitter,
|
|||
struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
|
||||
struct pipe_context *pipe = ctx->base.pipe;
|
||||
struct pipe_vertex_buffer vb = {0};
|
||||
struct pipe_stream_output_target *so_target;
|
||||
struct pipe_stream_output_target *so_target = NULL;
|
||||
unsigned offsets[PIPE_MAX_SO_BUFFERS] = {0};
|
||||
|
||||
assert(num_channels >= 1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue