From: Damien Lespiau Date: Mon, 3 Mar 2014 23:59:07 +0000 (+0000) Subject: drm: Check if the allocation has succeeded before dereferencing newmode X-Git-Tag: v3.15-rc1~51^2~50^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=409bbf1e3da29aaf57b520e29f904db9c7c2475e;p=pandora-kernel.git drm: Check if the allocation has succeeded before dereferencing newmode We allocate memory in drm_display_mode_from_vic_index() and use it without checking the pointer is valid. Fix that. Signed-off-by: Damien Lespiau Reviewed-by: Alex Deucher Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed