Re: [PATCH] media: mfc: Fix race between interrupt routine and device functions

2017-03-06 Thread Javier Martinez Canillas
Hello Marek, On 02/23/2017 08:43 AM, Marek Szyprowski wrote: > Interrupt routine must wake process waiting for given interrupt AFTER > updating driver's internal structures and contexts. Doing it in-between > is a serious bug. This patch moves all calls to the wake() function to > the end of the

[PATCH] media: mfc: Fix race between interrupt routine and device functions

2017-02-23 Thread Marek Szyprowski
Interrupt routine must wake process waiting for given interrupt AFTER updating driver's internal structures and contexts. Doing it in-between is a serious bug. This patch moves all calls to the wake() function to the end of the interrupt processing block to avoid potential and real races,