platforms/drm: fix crash with multi-gpu

Merged Xaver Hugl requested to merge work/fix-mgpu-crash into master

Merge request reports