From: Pawel Osciak Date: Mon, 19 May 2014 12:32:58 +0000 (-0300) Subject: [media] s5p-mfc: Fixes for decode REQBUFS X-Git-Tag: omap-for-v3.16/fixes-against-rc1~25^2~102 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38beac65a2d1cffe96ae0aee3eef57685d4eff74;p=pandora-kernel.git [media] s5p-mfc: Fixes for decode REQBUFS - Honor return values from vb2_reqbufs on REQBUFS(0). - Do not set the number of allocated buffers to 0 if userspace tries to request buffers again without freeing them. - There is no need to verify correct instance state on reqbufs, as we will verify this in queue_setup(). - There is also no need to verify that vb2_reqbufs() was able to allocate enough buffers (pb_count) and call buf_init on that many buffers (i.e. dst_buf_count is at least pb_count), because this will be verified by second queue_setup() call as well and vb2_reqbufs() will fail otherwise. - Only verify state is MFCINST_INIT when allocating, not when freeing. - Refactor and simplify code. Signed-off-by: Pawel Osciak Signed-off-by: Arun Kumar K Signed-off-by: Kamil Debski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed