diff options
author | RALOVICH, Kristóf <tade60@freemail.hu> | 2011-07-31 23:49:43 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-08-04 14:09:34 +0200 |
commit | eeed782ecb9fa92a958cb650c0a5a536556dc611 (patch) | |
tree | 4358c69f16f5d161eaf83082d378fd2aa4cbabaa /src/gbm/backends | |
parent | babb26776fadb683be9dacb492efcdc455b176ab (diff) | |
download | external_mesa3d-eeed782ecb9fa92a958cb650c0a5a536556dc611.zip external_mesa3d-eeed782ecb9fa92a958cb650c0a5a536556dc611.tar.gz external_mesa3d-eeed782ecb9fa92a958cb650c0a5a536556dc611.tar.bz2 |
gbm/dri: avoid crash in dri_screen_create
Diffstat (limited to 'src/gbm/backends')
-rw-r--r-- | src/gbm/backends/dri/gbm_dri.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index 6bb7848..9de8cb6 100644 --- a/src/gbm/backends/dri/gbm_dri.c +++ b/src/gbm/backends/dri/gbm_dri.c @@ -194,6 +194,8 @@ dri_screen_create(struct gbm_dri_device *dri) dri->screen = dri->dri2->createNewScreen(0, dri->base.base.fd, dri->extensions, &dri->driver_configs, dri); + if (dri->screen == NULL) + return -1; extensions = dri->core->getExtensions(dri->screen); if (dri_bind_extensions(dri, dri_core_extensions, extensions) < 0) { |