diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2014-09-06 11:05:20 -0400 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2014-09-08 20:06:11 -0400 |
commit | 564e3050941dbf6acdb49f974dd114e2b6a21347 (patch) | |
tree | 1c6d72df8e1c63408b1a2cf29377c2ccf51b62f1 /src/gallium/drivers | |
parent | c02ac408377f62086cc5d6853f23281bb52dc0b2 (diff) |
nvc0: avoid null deref of screen when collecting stats
Reported by Coverity
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/nouveau/nvc0/nvc0_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_context.c b/src/gallium/drivers/nouveau/nvc0/nvc0_context.c index 50c2058efca..b33a6731a1c 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_context.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_context.c @@ -163,8 +163,8 @@ nvc0_default_kick_notify(struct nouveau_pushbuf *push) nouveau_fence_update(&screen->base, TRUE); if (screen->cur_ctx) screen->cur_ctx->state.flushed = TRUE; + NOUVEAU_DRV_STAT(&screen->base, pushbuf_count, 1); } - NOUVEAU_DRV_STAT(&screen->base, pushbuf_count, 1); } static int |