From: Laurent Pinchart Date: Wed, 23 Jul 2014 13:30:57 +0000 (-0300) Subject: [media] omap3isp: resizer: Protect against races when updating crop X-Git-Tag: fixes-against-v3.18-rc2~130^2^2~495 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd73bb6c4e493cbe227f7861d96dd864a71fe5bc;p=pandora-kernel.git [media] omap3isp: resizer: Protect against races when updating crop When updating the crop rectangle during streaming, the IRQ handler will reprogram the resizer after the current frame. A race condition currently exists between the set selection operation and the IRQ handler: if the set selection operation is called twice in a row and the IRQ handler runs only during the second call, it could reprogram the hardware with partially updated values. Use a spinlock to protect against that. Signed-off-by: Laurent Pinchart Acked-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed