Skip to content

kmscube: check return value when creating GBM device

Adrian Larumbe requested to merge larumbe/kmscube:fix-init_gbm into master

In the off-chance that gbm_create_device fails and returns a NULL value, further down the line a segfault will be triggered when dereferencing gbm.dev.

Signed-off-by: Adrián Larumbe adrian.larumbe@collabora.com

Merge request reports

Loading