nouveau: drm_api create_screen()'s 'arg' argument can be NULL

This commit is contained in:
Ben Skeggs 2009-09-21 14:46:50 +10:00
parent e3384a0d53
commit 344e2fd1f2

View file

@ -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;