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:
Ilia Mirkin 2014-09-06 11:05:20 -04:00
parent c02ac40837
commit 564e305094

View file

@ -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