linux_dsm_epyc7002/drivers/gpu/drm/cirrus
Boris Brezillon 36e9d08b58 drm/cirrus: Fix NULL pointer dereference when registering the fbdev
cirrus_modeset_init() is initializing/registering the emulated fbdev
and, since commit c61b93fe51 ("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: c61b93fe51 ("drm/atomic: Fix remaining places where !funcs->best_encoder is valid")
Signed-off-by: Dave Airlie <airlied@redhat.com>
2016-08-09 13:01:47 +10:00
..
cirrus_drv.c drm/cirrus: Use lockless gem BO free callback 2016-06-01 09:40:21 +02:00
cirrus_drv.h drm/ttm: remove use_ticket parameter from ttm_bo_reserve 2016-05-04 20:21:21 -04:00
cirrus_fbdev.c drm: Pass the user drm_mode_fb_cmd2 as const to .fb_create() 2015-11-24 11:47:38 +01:00
cirrus_main.c drm/cirrus: Fix NULL pointer dereference when registering the fbdev 2016-08-09 13:01:47 +10:00
cirrus_mode.c drm/core: Change declaration for gamma_set. 2016-06-07 15:30:09 +02:00
cirrus_ttm.c drm/ttm: remove dummy bo_move implementations 2016-07-07 14:54:34 -04:00
Kconfig drm/cirrus: make fbdev support really optional 2016-07-18 09:11:35 +02:00
Makefile