diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-08-09 02:16:18 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-08-09 13:01:47 +1000 |
commit | 36e9d08b58f44c3a02974c405ccaaa6ecfaf05b8 (patch) | |
tree | 02e9bc0c84ac36db3b49c8be2620dc949f4195ad /drivers/gpu/drm/amd/amdkfd | |
parent | 210a021dab639694600450c14b877bf3e3240adc (diff) | |
download | linux-stable-36e9d08b58f44c3a02974c405ccaaa6ecfaf05b8.tar.gz linux-stable-36e9d08b58f44c3a02974c405ccaaa6ecfaf05b8.tar.bz2 linux-stable-36e9d08b58f44c3a02974c405ccaaa6ecfaf05b8.zip |
drm/cirrus: Fix NULL pointer dereference when registering the fbdev
cirrus_modeset_init() is initializing/registering the emulated fbdev
and, since commit c61b93fe51b1 ("drm/atomic: Fix remaining places where
!funcs->best_encoder is valid"), DRM internals can access/test some of
the fields in mode_config->funcs as part of the fbdev registration
process.
Make sure dev->mode_config.funcs is properly set to avoid dereferencing
a NULL pointer.
Reported-by: Mike Marshall <hubcap@omnibond.com>
Reported-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Fixes: c61b93fe51b1 ("drm/atomic: Fix remaining places where !funcs->best_encoder is valid")
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd')
0 files changed, 0 insertions, 0 deletions