From: Ben Skeggs Date: Mon, 21 Sep 2009 04:46:50 +0000 (+1000) Subject: nouveau: drm_api create_screen()'s 'arg' argument can be NULL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=344e2fd1f2aa580e13faf398b5d0179479cd5e76;p=mesa.git nouveau: drm_api create_screen()'s 'arg' argument can be NULL --- diff --git a/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c b/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c index 091cbbcfed1..117ca6059bb 100644 --- a/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c +++ b/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c @@ -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;