]> git.karo-electronics.de Git - karo-tx-linux.git/commit
qxl: fix qxl_conn_get_modes
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 1 Mar 2017 10:12:34 +0000 (11:12 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 7 Mar 2017 06:09:17 +0000 (07:09 +0100)
commit2d856f94e6d253225cc68beaaf942dc0ea7772cb
treebbf74e0ef87f8cac4fee04be3d1100e797d37603
parentc50fad8f62d1a6fe0083fa2c700e5e7bfc7dea0c
qxl: fix qxl_conn_get_modes

Call qxl_add_monitors_config_modes() unconditionally.  Do all sanity
checks in that function.

Fix sanity checks.  monitors_config is the current monitor
configuration, whereas client_monitors_config is the configuration
requested by the spice client.  So when filling the mode list, based on
the spice client request, we need to look at
client_monitors_config->count not monitors_config->count.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1488363154-6889-5-git-send-email-kraxel@redhat.com
drivers/gpu/drm/qxl/qxl_display.c