Re: [PATCH v3] media: uvcvideo: Fix race condition with usb_kill_urb

From: Ricardo Ribalda
Date: Wed Dec 14 2022 - 11:39:12 EST


Hi Laurent

On Wed, 14 Dec 2022 at 14:30, Laurent Pinchart
<laurent.pinchart@xxxxxxxxxxxxxxxx> wrote:

> > > Isn't this still racy ?
> >
> > Indeed...
> >
> > I could add a mutex just for flush_status
> >
> > what do you think?
>
> It may be possible to avoid that. I'm giving it a try.

Just sent a new version without lock...





--
Ricardo Ribalda