[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOkoqZnwGd=xA7mD1qG7+XJ3O9DH+Q4hc+xB9XvzzvGpPBNk1w@mail.gmail.com>
Date: Wed, 16 Feb 2022 19:07:12 -0800
From: Dimitris Michailidis <d.michailidis@...gible.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org,
Andrew Lunn <andrew@...n.ch>
Subject: Re: [PATCH net-next v6 3/8] net/funeth: probing and netdev ops
On Wed, Jan 12, 2022 at 2:56 PM Jakub Kicinski <kuba@...nel.org> wrote:
>
> On Sun, 9 Jan 2022 17:56:31 -0800 Dimitris Michailidis wrote:
> > +static int fun_hwtstamp_set(struct net_device *dev, struct ifreq *ifr)
> > +{
> > + struct funeth_priv *fp = netdev_priv(dev);
> > + struct hwtstamp_config cfg;
> > +
> > + if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg)))
> > + return -EFAULT;
> > +
> > + if (cfg.flags) /* flags is reserved, must be 0 */
> > + return -EINVAL;
> > +
>
> This check was moved to the core in 9c9211a3fc7a ("net_tstamp: add new
> flag HWTSTAMP_FLAG_BONDED_PHC_INDEX")
Thanks, I've changed it.
Powered by blists - more mailing lists