[Mesa-dev] [PATCH mesa] egl/drm: remove temporary fd variable

Emil Velikov emil.l.velikov at gmail.com
Wed May 31 17:03:13 UTC 2017


On 31 May 2017 at 17:55, Eric Engestrom <eric.engestrom at imgtec.com> wrote:
> In all codepaths, this var ends up assigned to the struct, except one:
> a cleanup codepath, where the `close()` was removed, leading to fd leaks.
> Remove the temp fd and assign to the struct field directly instead.
>
> CovID: 1213930
> Fixes: 7ec07beedf486d8ab901 ("egl/drm: make use of the
>                               dri2_display_destroy() helper")
Thanks Eric.
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

-Emil


More information about the mesa-dev mailing list