projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3384a0
)
nouveau: drm_api create_screen()'s 'arg' argument can be NULL
author
Ben Skeggs
<bskeggs@redhat.com>
Mon, 21 Sep 2009 04:46:50 +0000
(14:46 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Mon, 21 Sep 2009 04:46:50 +0000
(14:46 +1000)
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
patch
|
blob
|
history
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 091cbbcfed137cc301eb0ac9081ca92de7526288..117ca6059bbfcaadfee03f611c68c1d9dca66736 100644
(file)
--- 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;