OSDN Git Service

[media] v4l: omap4iss: Restore irq flags correctly in omap4iss_video_buffer_next()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 18 Dec 2013 07:29:24 +0000 (04:29 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 2 Jan 2014 17:53:01 +0000 (15:53 -0200)
commitf7d40eea8e3e531f1517ab7eded552e8837ef5da
tree51eb1954d877f28537f0c39a0a1fa98b6c263894
parenteaf95eeec47e41f30139eaad8c0f3d33c5059d22
[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