mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-17 13:30:20 +01:00
nvc0: fix null ptr deref on fermi due to debug changes.
Not everyone has a copy class, so don't dereference it if it's not
set.
Pointed out on irc by Armada
Fixes: 65092ab1a5 ("nouveau/nvc0: add support for using common pushbuf dumper")
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30421>
This commit is contained in:
parent
deb1d1f9c3
commit
56ea4e4fa6
1 changed files with 1 additions and 1 deletions
|
|
@ -1491,7 +1491,7 @@ nvc0_screen_create(struct nouveau_device *dev)
|
|||
screen->eng3d->oclass,
|
||||
screen->compute->oclass,
|
||||
screen->m2mf->oclass,
|
||||
screen->copy->oclass);
|
||||
screen->copy ? screen->copy->oclass : 0);
|
||||
return &screen->base;
|
||||
|
||||
fail:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue