diff options
author | Michal Januszewski <[email protected]> | 2009-03-31 15:25:41 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-04-01 08:59:33 -0700 |
commit | 23b736545473ed853b685cbc03883aa6ff3f0e0d (patch) | |
tree | dbc04a8fc5765f6832085909e6b5247511c33fed /net/lapb/lapb_iface.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 <[email protected]>
Cc: Krzysztof Helt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions