From: Chris Wilson Date: Wed, 13 Jul 2011 20:01:46 +0000 (+0100) Subject: drm/i915/bios: Avoid temporary allocation whilst searching for downclock X-Git-Tag: v3.1-rc1~230^2~18^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99834ea446d5c0da3f6cfa355fe4670840d45f79;p=pandora-kernel.git drm/i915/bios: Avoid temporary allocation whilst searching for downclock Alan Cox reported a missing check on the kmalloc return value for the allocation of a temporary mode used for searching for the LVDS downlock frequency. This allocation is roughly 200 bytes, a little too large to friviously place on the stack. However, we can simply use the few bytes we need stored within the original DVO timing data, skip the translation and do the compare directly between the timing data rather than on a mode, thus avoiding the need for any temporary allocations. Signed-off-by: Chris Wilson Cc: Alan Cox Cc: Keith Packard Signed-off-by: Keith Packard --- Reading git-diff-tree failed