diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2017-02-08 13:07:25 +0100 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2017-02-21 21:14:27 +0100 |
commit | a0b16a08905d68da07668a42eeb464b4f30bf3e5 (patch) | |
tree | 4108148247183a62c45c3a9ea52c37395b78107b /src/gbm | |
parent | f709096d0e34c3f6c9b3e45683b301b9d97a0d1a (diff) |
etnaviv: move pctx initialisation to avoid a null dereference
In case ctx->stream == NULL the fail label gets executed where
pctx gets dereferenced - too bad pctx is NULL in that case.
Caught by Coverity, reported to me by imirkin.
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Diffstat (limited to 'src/gbm')
0 files changed, 0 insertions, 0 deletions