projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
166a1cf
)
vhost_user_gpu: Drop dead check for g_malloc() failure
author
Markus Armbruster
<armbru@redhat.com>
Tue, 26 Jan 2021 12:42:40 +0000
(13:42 +0100)
committer
Laurent Vivier
<laurent@vivier.eu>
Tue, 9 Mar 2021 20:41:52 +0000
(21:41 +0100)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <
20210126124240
.
2081959
-3-armbru@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/display/vhost-user-gpu.c
patch
|
blob
|
history
diff --git
a/hw/display/vhost-user-gpu.c
b/hw/display/vhost-user-gpu.c
index a01f9315e19980182aae019553fae3500bf2c667..6cdaa1c73b9bb77fef8dc334ad6d2b5c833d7bc2 100644
(file)
--- a/
hw/display/vhost-user-gpu.c
+++ b/
hw/display/vhost-user-gpu.c
@@
-325,7
+325,6
@@
vhost_user_gpu_chr_read(void *opaque)
}
msg = g_malloc(VHOST_USER_GPU_HDR_SIZE + size);
- g_return_if_fail(msg != NULL);
r = qemu_chr_fe_read_all(&g->vhost_chr,
(uint8_t *)&msg->payload, size);