From: Krzysztof Kozlowski Date: Mon, 27 May 2013 09:56:26 +0000 (+0200) Subject: drm/exynos: fix tests for valid FIMD window number X-Git-Tag: v3.11-rc1~65^2~24^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37b006e88e090392cdb2787ef344193702c1d75b;p=pandora-kernel.git drm/exynos: fix tests for valid FIMD window number Valid values for FIMD windows are from 0 to WINDOWS_NR-1 inclusive (5 windows in total). The WINDOWS_NR is also a size of fimd_context.win_data array. However, early-return tests for wrong values of windows accepted a value of WINDOWS_NR which is out of bound for fimd_context.win_data. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Inki Dae --- Reading git-diff-tree failed