-
由 Boris Brezillon 提交于
cirrus_modeset_init() is initializing/registering the emulated fbdev and, since commit c61b93fe ("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: NMike Marshall <hubcap@omnibond.com> Reported-by: NEric W. Biederman <ebiederm@xmission.com> Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com> Fixes: c61b93fe ("drm/atomic: Fix remaining places where !funcs->best_encoder is valid") Signed-off-by: NDave Airlie <airlied@redhat.com>
36e9d08b