From: Richard Cochran <richardcochran@gmail.com>
To: Grygorii Strashko <grygorii.strashko@ti.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 22:08:29 +0200 [thread overview]
Message-ID: <20170727200829.cqe2gb6kl4lfzyux@localhost.localdomain> (raw)
In-Reply-To: <20170726221138.12986-2-grygorii.strashko@ti.com>
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);
> + 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
next prev parent reply other threads:[~2017-07-27 20:08 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 [this message]
2017-07-27 22:36 ` Grygorii Strashko
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=20170727200829.cqe2gb6kl4lfzyux@localhost.localdomain \
--to=richardcochran@gmail.com \
--cc=davem@davemloft.net \
--cc=grygorii.strashko@ti.com \
--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=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