From: Michal Januszewski Date: Tue, 31 Mar 2009 22:25:41 +0000 (-0700) Subject: uvesafb: fix selecting mode with the vbemode option X-Git-Tag: v2.6.30-rc1~428 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23b736545473ed853b685cbc03883aa6ff3f0e0d;p=pandora-kernel.git uvesafb: fix selecting mode with the vbemode option If the vbemode option is used, uvesafb calls fb_get_mode() without first setting the resolution in info->var. This results in a division by zero in fb_get_mode(), as evidenced e.g. in [1]. Fix this by ensuring the info->var structure is populated before fb_get_mode() is called. [1] http://bugzilla.kernel.org/show_bug.cgi?id=11661#c37 Signed-off-by: Michal Januszewski Cc: Krzysztof Helt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed