From: Eric Engestrom <eric.engestrom@intel.com>
To: Kevin Strasser <kevin.strasser@intel.com>
Cc: Kalyan Kondapally <kalyan.kondapally@intel.com>,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH libdrm] xf86drm: Be sure to closedir before return
Date: Mon, 21 May 2018 15:08:27 +0100 [thread overview]
Message-ID: <20180521140827.GA2472@intel.com> (raw)
In-Reply-To: <1526672897-29021-1-git-send-email-kevin.strasser@intel.com>
On Friday, 2018-05-18 12:48:17 -0700, Kevin Strasser wrote:
> 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 <kevin.strasser@intel.com>
Good catch, thanks!
Fixes: bb45ce4e3ac751315bfd "libdrm: Use readdir instead of readdir_r to
avoid build warnings"
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
... and pushed :)
> ---
> xf86drm.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/xf86drm.c b/xf86drm.c
> index 3a9d0ed..056dfa4 100644
> --- a/xf86drm.c
> +++ b/xf86drm.c
> @@ -2855,6 +2855,8 @@ static char *drmGetMinorNameForFD(int fd, int type)
> return strdup(dev_name);
> }
> }
> +
> + closedir(sysdir);
> return NULL;
> #else
> struct stat sbuf;
> --
> 2.7.4
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
prev parent reply other threads:[~2018-05-21 14:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-18 19:48 [PATCH libdrm] xf86drm: Be sure to closedir before return Kevin Strasser
2018-05-21 14:08 ` Eric Engestrom [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180521140827.GA2472@intel.com \
--to=eric.engestrom@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=kalyan.kondapally@intel.com \
--cc=kevin.strasser@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.