mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
gallium: Detect if a null buffer is passed.
This commit is contained in:
parent
af51d188c3
commit
39b8303d4a
1 changed files with 3 additions and 0 deletions
|
|
@ -230,6 +230,9 @@ fenced_buffer_create(struct fenced_buffer_list *fenced_list,
|
|||
{
|
||||
struct fenced_buffer *buf;
|
||||
|
||||
if(!buffer)
|
||||
return NULL;
|
||||
|
||||
buf = (struct fenced_buffer *)calloc(1, sizeof(struct fenced_buffer));
|
||||
if(!buf)
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue