mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 17:30:20 +01:00
zink: null check pipe loader config before use
Fixes: e3ea55fef2 ("zink: don't print error messages when failing an implicit driver load")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11220
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29806>
This commit is contained in:
parent
a1c220fd93
commit
453ceceec2
1 changed files with 2 additions and 2 deletions
|
|
@ -3256,12 +3256,12 @@ zink_internal_create_screen(const struct pipe_screen_config *config, int64_t dev
|
|||
|
||||
struct zink_screen *screen = rzalloc(NULL, struct zink_screen);
|
||||
if (!screen) {
|
||||
if (!config->driver_name_is_inferred)
|
||||
if (!config || !config->driver_name_is_inferred)
|
||||
mesa_loge("ZINK: failed to allocate screen");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
screen->driver_name_is_inferred = config->driver_name_is_inferred;
|
||||
screen->driver_name_is_inferred = config && config->driver_name_is_inferred;
|
||||
screen->drm_fd = -1;
|
||||
|
||||
glsl_type_singleton_init_or_ref();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue