diff options
author | Thierry Reding <treding@nvidia.com> | 2017-11-13 20:16:31 +0300 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2017-11-13 20:16:31 +0300 |
commit | d447ebf9c77b16effd8aca114d7d281639e3f77f (patch) | |
tree | 6d74797fdd593ffcfd425ba81290d12222d99010 /drivers/video/fbdev/udlfb.c | |
parent | 6c78935777d12ead2d32adf3eb525a24faf02d04 (diff) | |
download | linux-d447ebf9c77b16effd8aca114d7d281639e3f77f.tar.xz |
fbcon: Initialize ops->info early
During console takeover, which happens for all DRM/KMS setups using the
fbdev helpers, fbcon_startup() is called before fbcon_init() and as a
result con2fb_acquire_newinfo() will not be called (info->fbcon_par was
set to non-NULL in fbcon_startup()) to assign ops->info.
This causes the cursor_timer_handler() to unreference a NULL pointer.
Avoid this by unconditionally assigning ops->info during fbcon_startup()
so that it will be available early, but keep the additional assignment
in con2fb_acquire_newinfo() to support console remapping at runtime.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev/udlfb.c')
0 files changed, 0 insertions, 0 deletions