From: Grygorii Strashko <grygorii.strashko@ti.com>
To: Richard Cochran <richardcochran@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>, <netdev@vger.kernel.org>,
Sekhar Nori <nsekhar@ti.com>, <linux-kernel@vger.kernel.org>,
<linux-omap@vger.kernel.org>, Wingman Kwok <w-kwok2@ti.com>,
Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>,
John Stultz <john.stultz@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH v3 1/3] ptp: introduce ptp auxiliary worker
Date: Thu, 27 Jul 2017 17:36:51 -0500 [thread overview]
Message-ID: <74a827c9-467e-8791-3c97-9fc4c591435f@ti.com> (raw)
In-Reply-To: <20170727200829.cqe2gb6kl4lfzyux@localhost.localdomain>
On 07/27/2017 03:08 PM, Richard Cochran wrote:
> On Wed, Jul 26, 2017 at 05:11:36PM -0500, Grygorii Strashko wrote:
>> @@ -217,6 +231,19 @@ struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info,
>> mutex_init(&ptp->pincfg_mux);
>> init_waitqueue_head(&ptp->tsev_wq);
>>
>> + if (ptp->info->do_aux_work) {
>> + char *worker_name = kasprintf(GFP_KERNEL, "ptp%d", ptp->index);
>
> This string is allocated but never freed.
>
>> + kthread_init_delayed_work(&ptp->aux_work, ptp_aux_kworker);
>> + ptp->kworker = kthread_create_worker(0, worker_name ?
>> + worker_name : info->name);
Ops. Right need to add kfree(worker_name) here.
>> + if (IS_ERR(ptp->kworker)) {
>> + err = PTR_ERR(ptp->kworker);
>> + pr_err("failed to create ptp aux_worker %d\n", err);
>> + goto kworker_err;
>> + }
>> + }
>> +
>
> Thanks,
> Richard
>
--
regards,
-grygorii
next prev parent reply other threads:[~2017-07-27 22:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-26 22:11 [PATCH v3 0/3] net: ethernet: ti: cpts: fix tx timestamping timeout Grygorii Strashko
2017-07-26 22:11 ` [PATCH v3 1/3] ptp: introduce ptp auxiliary worker Grygorii Strashko
2017-07-27 20:08 ` Richard Cochran
2017-07-27 22:36 ` Grygorii Strashko [this message]
2017-07-26 22:11 ` [PATCH v4 2/3] net: ethernet: ti: cpts: convert to use " Grygorii Strashko
2017-07-26 22:11 ` [PATCH v3 3/3] net: ethernet: ti: cpts: fix tx timestamping timeout Grygorii Strashko
2017-07-28 17:02 ` Ivan Khoronzhuk
2017-07-28 17:30 ` Grygorii Strashko
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=74a827c9-467e-8791-3c97-9fc4c591435f@ti.com \
--to=grygorii.strashko@ti.com \
--cc=davem@davemloft.net \
--cc=ivan.khoronzhuk@linaro.org \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nsekhar@ti.com \
--cc=richardcochran@gmail.com \
--cc=tglx@linutronix.de \
--cc=w-kwok2@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®