summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Delva <adelva@google.com>2020-09-30 00:53:33 +0300
committerGerd Hoffmann <kraxel@redhat.com>2020-09-30 09:31:08 +0300
commit91e515c2f0f68d4ce137c9182eb03af4858f362e (patch)
treefe67f8a01ad25e4878ed70e6a9bb01a3aa01d1f5
parent4f8cc7a64af4c14ff222c2f9bab4f1ad2ddeb881 (diff)
downloadlinux-91e515c2f0f68d4ce137c9182eb03af4858f362e.tar.xz
virtio-gpu api: fix 64/32 compat issue with blob implementation
We encountered this issue when booting blob with a 32-bit kernel. The implementation doesn't match v6 of the virtio-spec change, so fix this. Fixes: ff886cbdcc44 ("virtio-gpu api: blob resources") Signed-off-by: Alistair Delva <adelva@google.com> Link: http://patchwork.freedesktop.org/patch/msgid/20200929215333.1241-1-gurchetansingh@chromium.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--include/uapi/linux/virtio_gpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/virtio_gpu.h b/include/uapi/linux/virtio_gpu.h
index fa2ae4a1da5f..0ec6b610402c 100644
--- a/include/uapi/linux/virtio_gpu.h
+++ b/include/uapi/linux/virtio_gpu.h
@@ -388,9 +388,9 @@ struct virtio_gpu_resource_create_blob {
/* zero is invalid blob mem */
__le32 blob_mem;
__le32 blob_flags;
+ __le32 nr_entries;
__le64 blob_id;
__le64 size;
- __le32 nr_entries;
/*
* sizeof(nr_entries * virtio_gpu_mem_entry) bytes follow
*/