summaryrefslogtreecommitdiffstats
path: root/drivers/dio
diff options
context:
space:
mode:
authorMichal Januszewski <spock@gentoo.org>2009-04-01 00:25:41 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-01 17:59:33 +0200
commit23b736545473ed853b685cbc03883aa6ff3f0e0d (patch)
treedbc04a8fc5765f6832085909e6b5247511c33fed /drivers/dio
parentfbdev: remove cyblafb driver (diff)
downloadlinux-23b736545473ed853b685cbc03883aa6ff3f0e0d.tar.xz
linux-23b736545473ed853b685cbc03883aa6ff3f0e0d.zip
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/dio')
0 files changed, 0 insertions, 0 deletions