Commit f34b6942 authored by Kevin Strasser's avatar Kevin Strasser Committed by Eric Engestrom
Browse files

xf86drm: Be sure to closedir before return

removed in commit bb45ce4e



Adding it back as it is still needed in the case where we don't find a
match.
Signed-off-by: Kevin Strasser's avatarKevin Strasser <kevin.strasser@intel.com>
Fixes: bb45ce4e

 "libdrm: Use readdir instead of readdir_r to
                             avoid build warnings"$
Reviewed-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>
parent cb592ac8
......@@ -2855,6 +2855,8 @@ static char *drmGetMinorNameForFD(int fd, int type)
return strdup(dev_name);
}
}
closedir(sysdir);
return NULL;
#else
struct stat sbuf;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment