tkaratapanis commented on code in PR #16734: URL: https://github.com/apache/nuttx/pull/16734#discussion_r2229341353
########## drivers/misc/optee.c: ########## @@ -1218,15 +1239,18 @@ int optee_shm_alloc(FAR struct optee_priv_data *priv, FAR void *addr, ptr = addr; } - if (ptr == NULL) + if (!(flags & TEE_SHM_USER_MAP)) { - goto err; + if (ptr == NULL) Review Comment: This is the most recent version: ``` if (!(flags & TEE_SHM_USER_MAP) && (ptr == NULL)) { return -EINVAL; } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org