From: Dan Carpenter Date: Wed, 27 Nov 2013 22:18:47 +0000 (+0300) Subject: drm/nv50/disp: min/max are reversed in nv50_crtc_gamma_set() X-Git-Tag: v3.13-rc4~39^2~7^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdefc8cbdfc71ea73e0573dbd2d24c0a68232218;p=pandora-kernel.git drm/nv50/disp: min/max are reversed in nv50_crtc_gamma_set() We should be taking the minimum here instead of the max. It could lead to a buffer overflow. Fixes: 438d99e3b175 ('drm/nvd0/disp: initial crtc object implementation') Signed-off-by: Dan Carpenter a/drm/nv50_display.c b/drm/nv50_display.c index f8e66c08b11a..4e384a2f99c3 100644 --- Reading git-diff-tree failed