summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv
diff options
context:
space:
mode:
authorThomas Senyk <thomas.senyk@qt.io>2022-12-12 15:03:00 +0100
committerThomas Senyk <thomas.senyk@qt.io>2022-12-13 21:07:51 +0100
commitad2aca113daccb4d0e9299b7c37d61f2d9b1f930 (patch)
tree96e9a256544fc4b147d58c4deb90dd4aae39da3a /src/plugins/platforms/eglfs/deviceintegration/eglfs_viv
parent67284763e7ce0d12650b652e92dfd022a8affb1d (diff)
eglfs-kms/gbm: fix segfault and add qScopeGuard
As framebufferForBufferObject has a code-path which returns a nullptr, it's vital to check on that and return early in that case. As this is the third segment in this function that does gbm_surface_release_buffer, a qScopeGuard was introduced to reduce code duplication. This also makes this function saver/easier to maintain long term. The platform on which this segfault was reported is QEMU Pick-to: 6.2 6.4 6.5 Change-Id: I5ee1ad4073712349b7475bce3a7978961fea2344 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/plugins/platforms/eglfs/deviceintegration/eglfs_viv')
0 files changed, 0 insertions, 0 deletions