From: Pawel Osciak Date: Tue, 21 Oct 2014 11:07:07 +0000 (-0300) Subject: [media] s5p-mfc: fix a race in interrupt flags handling X-Git-Tag: omap-for-v3.19/fixes-rc1~133^2~334 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2035364ccbf357ae23bddd6ebf67b35ecdc6a67;p=pandora-kernel.git [media] s5p-mfc: fix a race in interrupt flags handling Interrupt result flags have to be cleared before a hardware job is run. Otherwise, if they are cleared asynchronously, we may end up clearing them after the interrupt for which we wanted to wait has already arrived, thus overwriting the job results that we intended to wait for. To prevent this, clear the flags only under hw_lock and before running a hardware job. Signed-off-by: Pawel Osciak Signed-off-by: Kiran AVND Signed-off-by: Arun Kumar K Signed-off-by: Kamil Debski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed