mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 05:20:09 +01:00
llvmpipe: add a missing alloc error handling in fd import
Fixes:d74ea2c117("llvmpipe: Implement dmabuf handling") Suggested-by: Christian Gmeiner <cgmeiner@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38074> (cherry picked from commit66414c6b70)
This commit is contained in:
parent
fd085d2e3e
commit
36f0885c44
2 changed files with 4 additions and 1 deletions
|
|
@ -2864,7 +2864,7 @@
|
|||
"description": "llvmpipe: add a missing alloc error handling in fd import",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "d74ea2c117fe96e527471e572336f931c3c77da1",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1485,6 +1485,9 @@ llvmpipe_import_memory_fd(struct pipe_screen *screen,
|
|||
bool dmabuf)
|
||||
{
|
||||
struct llvmpipe_memory_allocation *alloc = CALLOC_STRUCT(llvmpipe_memory_allocation);
|
||||
if (!alloc)
|
||||
return false;
|
||||
|
||||
alloc->mem_fd = -1;
|
||||
alloc->dmabuf_fd = -1;
|
||||
#if defined(HAVE_LIBDRM) && defined(HAVE_LINUX_UDMABUF_H)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue