diff options
author | Sven Neumann <s.neumann@raumfeld.com> | 2009-10-22 08:34:34 +0200 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2009-12-01 09:02:29 +0800 |
commit | 448ac479768d6c242338ecf13569dc297f8908ce (patch) | |
tree | f5c435e8af9c429fb023c7467fb8238a1fcc31c3 /drivers/net/mlx4/alloc.c | |
parent | 7f49a7f7011f3a59b51dd6003714d7aed72d7718 (diff) |
pxafb: use passed fb_var_screeninfo struct in pxafb_pan_display()
pxafb_pan_display() used to ignore the fb_var_screeninfo parameter. Now
pass it to setup_base_frame() instead of pulling default values out of
fb_info.
And the original patch has an issue of pxafb_pan_display() paying only
attention to the 'var' parameter passed in, and Ville Syrjälä pointed
out, this is potentially dangerous as user could pass in any other
screeninfo parameters as well, and not only such that are relevant for
display panning. This is fixed by limiting the arguments actually used
to .xoffset, .yoffset and .vmode & FB_VMODE_YWRAP.
Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
Cc: Ville Syrjälä <syrjala@sci.fi>
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'drivers/net/mlx4/alloc.c')
0 files changed, 0 insertions, 0 deletions