mirror of
https://github.com/apache/nuttx.git
synced 2026-09-06 08:56:32 +00:00
xtensa/esp32: Fix crash issue caused by null pointer operation
This commit is contained in:
parent
ade6997643
commit
98d97f27fd
1 changed files with 4 additions and 2 deletions
|
|
@ -1802,8 +1802,10 @@ static int32_t esp_task_create_pinned_to_core(void *entry,
|
|||
(char * const *)param);
|
||||
if (pid > 0)
|
||||
{
|
||||
*((int *)task_handle) = pid;
|
||||
|
||||
if (task_handle != NULL)
|
||||
{
|
||||
*((int *)task_handle) = pid;
|
||||
}
|
||||
#ifdef CONFIG_SMP
|
||||
if (core_id < CONFIG_SMP_NCPUS)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue