Re: [PATCH net-next v9 12/13] net: ethtool: tsinfo: Add support for hwtstamp provider and get/set hwtstamp config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 5 Mar 2024 17:52:53 +0100 Köry Maincent wrote:
> > > +		/* Does the hwtstamp supported in the netdev topology */
> > > +		if (mod) {
> > > +			hwtstamp.ptp = ptp_clock_get_by_index(phc_index);    
> > 
> > This just returns a pointer without any refcounting, right?
> > What guarantees the ptp object doesn't disappear?  
> 
> Could the ptp object disappears within rtnlock?

I believe so, yes.

> Maybe I should add refcounting.





[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux