summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2023-06-28 07:09:42 +0600
committerDudemanguy <random342@airmail.cc>2023-06-28 02:10:14 +0000
commitc3781b2d6837389c0eb6af6ad0e1998c0df76bc1 (patch)
treecf98a844f259c44f0712a072168614e6b0a61e66 /options
parente7902eb83dc68dcb0adb99568d72bd3f9a4e4550 (diff)
downloadmpv-c3781b2d6837389c0eb6af6ad0e1998c0df76bc1.tar.bz2
mpv-c3781b2d6837389c0eb6af6ad0e1998c0df76bc1.tar.xz
vo_drm: fix null dereference and using closed fd
when vo_drm_init() fails inside of preinit(), uninit() will be called as part of cleanup with vo->drm being NULL and thus `drm->fd` would lead to null dereference. and since vo_drm_uninit() closes drm->fd, destroy_framebuffer() ends up using a closed fd. according to the drm-gem manpage [0]: > If you close the DRM file-descriptor, all open dumb-buffers are > automatically destroyed. so remove the destroy_framebuffer() loop entirely, which fixes both the issues. [0]: https://www.systutorials.com/docs/linux/man/7-drm-gem/
Diffstat (limited to 'options')
0 files changed, 0 insertions, 0 deletions