From: Sylwester Nawrocki Date: Mon, 23 May 2011 12:15:05 +0000 (-0300) Subject: [media] s5p-fimc: Fix wrong buffer size in queue_setup X-Git-Tag: v3.0-rc7~46^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a629f86b4aa1669ddf2afaa3ded66d5a59d60b77;p=pandora-kernel.git [media] s5p-fimc: Fix wrong buffer size in queue_setup Avoid dereferencing of NULL f->fmt. Correct size of the allocated buffer in case the crop rectangle is smaller than the bounds rectangle (configured with S_FMT). Also remove redundant check for *num_buffer == 0 as this case is handled in videobuf2. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed