public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <arnaldo.melo@gmail•com>
To: Jiri Olsa <jolsa@redhat•com>
Cc: Yunfeng Ye <yeyunfeng@huawei•com>,
	peterz@infradead•org, mingo@redhat•com, mark.rutland@arm•com,
	alexander.shishkin@linux•intel.com, namhyung@kernel•org,
	ast@kernel•org, daniel@iogearbox•net, kafai@fb•com,
	songliubraving@fb•com, yhs@fb•com, ilubashe@akamai•com,
	ak@linux•intel.com, kan.liang@linux•intel.com,
	alexey.budankov@linux•intel.com, linux-kernel@vger•kernel.org,
	netdev@vger•kernel.org, bpf@vger•kernel.org,
	hushiyuan@huawei•com, linfeilong@huawei•com
Subject: Re: [PATCH] perf tools: fix resource leak of closedir() on the error paths
Date: Tue, 15 Oct 2019 11:58:58 -0300	[thread overview]
Message-ID: <20191015145858.GA24098@kernel.org> (raw)
In-Reply-To: <20191015084451.GB10951@krava>

Em Tue, Oct 15, 2019 at 10:44:51AM +0200, Jiri Olsa escreveu:
> On Tue, Oct 15, 2019 at 04:30:08PM +0800, Yunfeng Ye wrote:
> > Both build_mem_topology() and rm_rf_depth_pat() have resource leak of
> > closedir() on the error paths.
> > 
> > Fix this by calling closedir() before function returns.
> > 
> > Fixes: e2091cedd51b ("perf tools: Add MEM_TOPOLOGY feature to perf data file")
> > Fixes: cdb6b0235f17 ("perf tools: Add pattern name checking to rm_rf")
> 
> guilty as charged ;-)
> 
> Acked-by: Jiri Olsa <jolsa@kernel•org>

Thanks, applied to perf/urgent.

- Arnaldo

      reply	other threads:[~2019-10-15 14:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-15  8:30 [PATCH] perf tools: fix resource leak of closedir() on the error paths Yunfeng Ye
2019-10-15  8:44 ` Jiri Olsa
2019-10-15 14:58   ` Arnaldo Carvalho de Melo [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=20191015145858.GA24098@kernel.org \
    --to=arnaldo.melo@gmail$(echo .)com \
    --cc=ak@linux$(echo .)intel.com \
    --cc=alexander.shishkin@linux$(echo .)intel.com \
    --cc=alexey.budankov@linux$(echo .)intel.com \
    --cc=ast@kernel$(echo .)org \
    --cc=bpf@vger$(echo .)kernel.org \
    --cc=daniel@iogearbox$(echo .)net \
    --cc=hushiyuan@huawei$(echo .)com \
    --cc=ilubashe@akamai$(echo .)com \
    --cc=jolsa@redhat$(echo .)com \
    --cc=kafai@fb$(echo .)com \
    --cc=kan.liang@linux$(echo .)intel.com \
    --cc=linfeilong@huawei$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=mark.rutland@arm$(echo .)com \
    --cc=mingo@redhat$(echo .)com \
    --cc=namhyung@kernel$(echo .)org \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=peterz@infradead$(echo .)org \
    --cc=songliubraving@fb$(echo .)com \
    --cc=yeyunfeng@huawei$(echo .)com \
    --cc=yhs@fb$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox