diff options
author | Michal Januszewski <spock@gentoo.org> | 2009-03-31 18:25:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-01 11:59:33 -0400 |
commit | 23b736545473ed853b685cbc03883aa6ff3f0e0d (patch) | |
tree | dbc04a8fc5765f6832085909e6b5247511c33fed /drivers/video/omap/omapfb_main.c | |
parent | ddb53d48da5b0e691f35e703ac29118747f86c99 (diff) |
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 <spock@gentoo.org>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/omap/omapfb_main.c')
0 files changed, 0 insertions, 0 deletions