]> git.ipfire.org Git - thirdparty/qemu.git/commit - hw/display/virtio-gpu.c
virtio-gpu: OUT_OF_MEMORY if failing to create udmabuf
authorDongwon Kim <dongwon.kim@intel.com>
Tue, 27 Jun 2023 00:34:53 +0000 (17:34 -0700)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 27 Jun 2023 15:08:56 +0000 (17:08 +0200)
commit7b41ca8d913cdd91d33d74d906dd5d7bd9f41045
tree58e7a798eb9fe1aa0775bfddbe2a8a909a326938
parent37802a24eb4e535d96d6fe0273505d2b5c6528c2
virtio-gpu: OUT_OF_MEMORY if failing to create udmabuf

Respond with VIRTIO_GPU_RESP_ERR_OUT_OF_MEMORY if it fails to create
an udmabuf for the blob resource.

v2: consolidated return statments and removed an unnecessary style change

Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc: Vivek Kasireddy <vivek.kasireddy@intel.com>
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20230627003453.5321-1-dongwon.kim@intel.com>
hw/display/virtio-gpu.c