summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2009-09-21 14:46:50 +1000
committerBen Skeggs <[email protected]>2009-09-21 14:46:50 +1000
commit344e2fd1f2aa580e13faf398b5d0179479cd5e76 (patch)
treeb4729df005a501ea4fba2aa6ed3ee3d5ebab2a86 /src/gallium
parente3384a0d533fe69c1b26f1b03e98beac0b42ccfb (diff)
nouveau: drm_api create_screen()'s 'arg' argument can be NULL
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c2
1 files changed, 1 insertions, 1 deletions
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;