[media] s5p-mfc: fix encoder crash after VIDIOC_STREAMOFF
authorJohn Sheu <sheu@google.com>
Tue, 11 Mar 2014 22:52:02 +0000 (19:52 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 23 May 2014 17:56:34 +0000 (14:56 -0300)
commite933cefa0f6e9cf40c8f4ae6d4da8ebb3f765ba0
tree17c16c78ddfd88e7a4d3aa85d6f0bd42938081a4
parent535ec214e23adaf72c775938e9e9c6c1cf6fc5b9
[media] s5p-mfc: fix encoder crash after VIDIOC_STREAMOFF

VIDIOC_STREAMOFF clears the encoder's destination queue -- routines run
from the interrupt handler cannot assume that the queue is non-empty.

Signed-off-by: John Sheu <sheu@google.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c