[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZRic7alWmNrbjU/F@hoboy.vegasvil.org>
Date: Sat, 30 Sep 2023 15:10:53 -0700
From: Richard Cochran <richardcochran@...il.com>
To: Xabier Marquiegui <reibax@...il.com>
Cc: netdev@...r.kernel.org, horms@...nel.org,
chrony-dev@...ony.tuxfamily.org, mlichvar@...hat.com,
ntp-lists@...tcorallo.com, vinicius.gomes@...el.com,
alex.maftei@....com, davem@...emloft.net, rrameshbabu@...dia.com,
shuah@...nel.org
Subject: Re: [PATCH net-next v3 2/3] ptp: support multiple timestamp event
readers
On Thu, Sep 28, 2023 at 03:35:43PM +0200, Xabier Marquiegui wrote:
> @@ -19,7 +19,12 @@
> */
> static struct posix_clock *get_posix_clock(struct file *fp)
> {
> - struct posix_clock *clk = fp->private_data;
> + struct posix_clock_user *pcuser = fp->private_data;
> + struct posix_clock *clk;
> +
> + if (!pcuser)
> + return NULL;
You added a test for (fp->private_data != NULL) that wasn't there
before. Was there an issue with the existing code?
If so, please fix that as the first patch in your series.
If not, please remove the pointless test from your change.
Thanks,
Richard
Powered by blists - more mailing lists