Gerd Hoffmann
4fa7b4cc50
virtio-gpu: move scanout_id sanity check
...
Checking scanout_id in virtio_gpu_do_set_scanout() is too late, for the
"resource_id == 0" case (aka disable scanout) the scanout_id is used
unchecked. Move the check into the callers to fix that.
Fixes: e64d4b6a9bc3 ("virtio-gpu: Refactor virtio_gpu_set_scanout")
Fixes: 32db3c63ae11 ("virtio-gpu: Add virtio_gpu_set_scanout_blob")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/383
Reported-by: Alexander Bulekov <alxndr@bu.edu>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Message-Id: <20210604075029.1201478-1-kraxel@redhat.com>
2021-06-15 07:16:56 +02:00
..
2020-12-10 17:16:44 +01:00
2020-11-04 08:25:17 +01:00
2020-06-30 22:54:24 +02:00
2020-09-18 14:12:32 -04:00
2020-06-30 22:54:24 +02:00
2020-06-30 22:54:24 +02:00
2020-11-15 17:04:40 +01:00
2020-05-04 11:17:27 +02:00
2020-09-18 14:12:32 -04:00
2020-12-10 12:15:18 -05:00
2018-10-15 09:57:33 +02:00
2020-09-18 14:12:32 -04:00
2017-03-27 12:14:45 +02:00
2017-03-17 10:23:44 +01:00
2020-11-13 07:36:33 +01:00
2020-05-28 11:38:57 +02:00
2021-05-10 11:41:02 +02:00
2019-08-16 13:31:52 +02:00
2020-11-02 16:52:17 +00:00
2019-08-16 13:31:52 +02:00
2015-07-24 13:57:45 +02:00
2020-09-18 14:12:32 -04:00
2020-01-24 20:59:15 +01:00
2020-09-18 14:12:32 -04:00
2021-05-12 18:20:25 +02:00
2021-06-05 21:21:56 +02:00
2021-05-27 12:06:37 +02:00
2021-05-02 17:24:51 +02:00
2020-05-28 11:38:57 +02:00
2021-03-06 13:30:38 +00:00
2021-03-14 13:14:55 +00:00
2021-03-14 13:14:55 +00:00
2021-03-14 13:14:56 +00:00
2021-02-04 14:32:40 +01:00
2021-02-04 14:32:40 +01:00
2021-05-27 11:55:59 +02:00
2020-09-18 14:12:32 -04:00
2020-09-09 09:27:09 -04:00
2020-05-18 15:43:51 +02:00
2020-09-18 14:12:32 -04:00
2021-03-10 09:07:08 +11:00
2020-09-18 14:12:32 -04:00
2020-12-10 12:15:03 -05:00
2021-03-06 13:30:38 +00:00
2021-03-19 15:18:43 +01:00
2021-06-02 06:51:09 +02:00
2020-08-21 06:18:24 -04:00
2019-12-18 02:34:13 +01:00
2019-05-13 08:58:55 +02:00
2019-09-19 10:37:46 +02:00
2019-09-19 10:37:46 +02:00
2019-12-18 02:34:13 +01:00
2020-09-18 14:12:32 -04:00
2021-05-10 11:41:02 +02:00
2021-06-15 07:11:03 +02:00
2020-09-09 09:27:09 -04:00
2021-03-09 21:41:52 +01:00
2020-09-09 13:20:22 -04:00
2021-05-27 12:07:37 +02:00
2021-05-10 13:55:28 +02:00
2021-05-10 13:55:28 +02:00
2020-09-09 09:27:09 -04:00
2021-05-27 12:07:37 +02:00
2021-05-27 12:07:37 +02:00
2021-06-15 07:16:56 +02:00
2021-05-10 13:55:28 +02:00
2021-02-04 15:58:54 +01:00
2020-09-18 14:12:32 -04:00
2021-01-27 09:48:04 +01:00
2019-08-16 13:31:52 +02:00
2021-03-30 14:05:33 +01:00