mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
nvc0: avoid null deref of screen when collecting stats
Reported by Coverity Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
c02ac40837
commit
564e305094
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue