xf86drm: Be sure to closedir before return
PATCH 1/1 xf86drm: Be sure to closedir before return
removed in commit bb45ce4e3ac751315bfd7fbfd9e1425bf515ec0d
Adding it back as it is still needed in the case where we don't find a match.
Signed-off-by Kevin Strasser <[email protected]>
--- xf86drm.c | 2 ++ 1 file changed, 2 insertions(+)
xf86drm.c +2 -0
@@ -2855,6 +2855,8 @@ static char *drmGetMinorNameForFD(int fd, int type) return strdup(dev_name); } } + +closedir (sysdir);return NULL ;#else struct stat sbuf;
Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines · Kevin Strasser
removed in commit
bb45ce4e3ac751315bfd7fbfd9e1425bf515ec0dAdding it back as it is still needed in the case where we don't find a match.
Signed-off-by Kevin Strasser <[email protected]>
Good catch, thanks!
Fixes bb45ce4e3ac751315bfd "libdrm: Use readdir instead of readdir_r to
avoid build warnings"
Reviewed-by Eric Engestrom <[email protected]>
... and pushed :)
Quoted 24 lines
--- xf86drm.c | 2 ++ 1 file changed, 2 insertions(+)xf86drm.c +2
-0@@ -2855,6 +2855,8 @@ static char *drmGetMinorNameForFD(int fd, int type) return strdup(dev_name); } } + +closedir (sysdir);return NULL ;#else struct stat sbuf;Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel