* Re: [PATCH net-next V5] ptp: fix corrupted list in ptp_open
[not found] <tencent_33056C0C97FCEA56EF7ECD4C7B266DCC2D0A@qq.com>
@ 2023-11-04 15:20 ` Richard Cochran
0 siblings, 0 replies; only message in thread
From: Richard Cochran @ 2023-11-04 15:20 UTC (permalink / raw)
To: Edward Adam Davis
Cc: davem, habetsm.xilinx, jeremy, linux-kernel, netdev, reibax,
syzbot+df3f3ef31f60781fa911
On Sat, Nov 04, 2023 at 03:07:24PM +0800, Edward Adam Davis wrote:
> diff --git a/drivers/ptp/ptp_private.h b/drivers/ptp/ptp_private.h
> index 52f87e394aa6..7d82960fd946 100644
> --- a/drivers/ptp/ptp_private.h
> +++ b/drivers/ptp/ptp_private.h
> @@ -44,6 +44,7 @@ struct ptp_clock {
> struct pps_device *pps_source;
> long dialed_frequency; /* remembers the frequency adjustment */
> struct list_head tsevqs; /* timestamp fifo list */
> + struct mutex tsevq_mux; /* one process at a time writing the timestamp fifo list */
As I said before, it cannot be a mutex. It must be a spin lock.
Thanks,
Richard
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-04 15:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <tencent_33056C0C97FCEA56EF7ECD4C7B266DCC2D0A@qq.com>
2023-11-04 15:20 ` [PATCH net-next V5] ptp: fix corrupted list in ptp_open Richard Cochran
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®