mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
nouveau: drm_api create_screen()'s 'arg' argument can be NULL
This commit is contained in:
parent
e3384a0d53
commit
344e2fd1f2
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ nouveau_drm_create_screen(struct drm_api *api, int fd,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (arg->mode == DRM_CREATE_DRI1) {
|
||||
if (arg && arg->mode == DRM_CREATE_DRI1) {
|
||||
struct nouveau_dri *nvdri = dri1->ddx_info;
|
||||
enum pipe_format format;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue