upstream: [media] v4l: omap4iss: Restore irq flags correctly in omap4iss_video_buffer...
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 18 Dec 2013 07:29:24 +0000 (04:29 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:52:45 +0000 (11:52 +0900)
commit71f71928496fefce716dcbb5065a3c86694e0510
tree86a109b7831520048c2fc625194e308471f13ff6
parentc3dfc4d0299d0701893c0bc159992767c58cf939
upstream: [media] v4l: omap4iss: Restore irq flags correctly in omap4iss_video_buffer_next()

The spin_lock_irqsave() macro is not nestable.  The second call will
overwrite the first record of "flags" so the IRQs will not be enabled
correctly at the end of the function.

In the current code, this function is always called from the IRQ handler
so everything works fine and this fix doesn't change anything.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/staging/media/omap4iss/iss_video.c