From: Tomi Valkeinen Date: Thu, 13 Dec 2012 10:13:51 +0000 (+0200) Subject: OMAPFB: fix error handling in omapfb_find_best_mode() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~2^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa0c5e71295fa4d62b900818d900c16980985e72;p=pandora-kernel.git OMAPFB: fix error handling in omapfb_find_best_mode() omapfb_find_best_mode() doesn't check for the return value of kmalloc. Fix this. This also removes the smatch warning: drivers/video/omap2/omapfb/omapfb-main.c:2256 omapfb_find_best_mode() error: potential null dereference 'specs'. (kzalloc returns null) Signed-off-by: Tomi Valkeinen --- Reading git-diff-tree failed