The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* Re: [PATCH-net-next] ptp: fix corrupted list in ptp_open
@ 2023-10-29 19:57 Richard Cochran
       [not found] ` <tencent_24C96E7894D0EBA2EDD2CFB87BB66EC02D0A@qq.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Cochran @ 2023-10-29 19:57 UTC (permalink / raw)
  To: Edward Adam Davis
  Cc: davem, linux-kernel, netdev, reibax, syzbot+df3f3ef31f60781fa911,
	syzkaller-bugs

On Sun, Oct 29, 2023 at 10:09:42AM +0800, Edward Adam Davis wrote:

> @@ -585,7 +596,6 @@ ssize_t ptp_read(struct posix_clock_context *pccontext, uint rdflags,
>  free_event:
>  	kfree(event);
>  exit:
> -	if (result < 0)
> -		ptp_release(pccontext);
> +	mutex_unlock(&ptp->tsevq_mux);
>  	return result;
>  }

This is the only hunk that makes sense.  Keep this, but remove the
rest, just like in your previous patches.

Thanks,
Richard

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-11-04  2:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <tencent_2C67C6D2537B236F497823BCC457976F9705@qq.com>
2023-11-02  0:18 ` [PATCH net-next V2] ptp: fix corrupted list in ptp_open Richard Cochran
2023-11-02 18:16 ` Jeremy Cline
2023-11-04  2:13   ` Richard Cochran
2023-11-04  2:15     ` Richard Cochran
2023-10-29 19:57 [PATCH-net-next] " Richard Cochran
     [not found] ` <tencent_24C96E7894D0EBA2EDD2CFB87BB66EC02D0A@qq.com>
2023-10-31  9:28   ` [PATCH net-next V2] " Martin Habets
2023-11-02  0:12   ` Richard Cochran
     [not found]     ` <tencent_ACEACCAC786A6F282DF16DCC95C8E852ED0A@qq.com>
2023-11-03 23:15       ` Richard Cochran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox