Commit ed58580f authored by Swann Perarnau's avatar Swann Perarnau

[fix] missing pointer check

parent 9c691885
Pipeline #8036 failed with stages
in 19 minutes and 9 seconds
......@@ -185,6 +185,9 @@ int aml_area_linux_create(struct aml_area **area, const int mmap_flags,
struct aml_area *ret = NULL;
struct aml_area_linux_data *data;
if (area == NULL)
return -AML_EINVAL;
*area = NULL;
/* check flags */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment