]> git.ipfire.org Git - thirdparty/plymouth.git/commit
drm: ensure drm_fd is closed if open fails wip/fix-text-splash
authorRay Strode <rstrode@redhat.com>
Fri, 1 Jun 2018 18:41:32 +0000 (14:41 -0400)
committerRay Strode <rstrode@redhat.com>
Fri, 1 Jun 2018 18:41:32 +0000 (14:41 -0400)
commit8aa3b01b33a7c483591d200a74b3f3fb3df538bb
treea1ec5d0941c3c83f732f5525c2598a7f83b3fb6c
parentbf560986f0fe26f45dc8f8cc0f03ed27e09a4f8d
drm: ensure drm_fd is closed if open fails

At the moment we open the drm fd right away, then proceed to
check the terminal.  If the terminal doesn't meet specs, we
fail the open call but neglect to close the drm_fd.

This commit fixes the code such that we don't leave the drm
fd open inadvertently.
src/plugins/renderers/drm/plugin.c