diff options
author | Sinclair Yeh <syeh@vmware.com> | 2017-01-19 01:14:01 +0300 |
---|---|---|
committer | Sinclair Yeh <syeh@vmware.com> | 2017-01-27 07:52:54 +0300 |
commit | 8c95742e566f3945f992472a5f99f78aaa7f890b (patch) | |
tree | 0d6ff72ad124b7f71b07f8b498c6ca1e54342704 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | 0f580386b6ad295c04c1b32120826494f8a29c1c (diff) | |
download | linux-8c95742e566f3945f992472a5f99f78aaa7f890b.tar.xz |
drm/vmwgfx: Fix depth input into drm_mode_legacy_fb_format
Currently the pitch is passed in as depth. This causes
drm_mode_legacy_fb_format() to return the wrong pixel format.
The wrong pixel format will be rejected by vmw_kms_new_framebuffer(),
thus leaving par->set_fb to NULL.
This eventually causes a crash in vmw_fb_setcolreg() when the code
tries to dereference par->set_fb.
Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions