mirror of
https://github.com/apache/nuttx.git
synced 2026-10-13 01:00:12 +00:00
Fixed improper access of g_pidhash.
This commit is contained in:
parent
553fe83abf
commit
95af4b35cf
1 changed files with 3 additions and 1 deletions
|
|
@ -83,6 +83,7 @@ static int nxtask_assign_pid(FAR struct tcb_s *tcb)
|
|||
FAR struct tcb_s **pidhash;
|
||||
pid_t next_pid;
|
||||
int hash_ndx;
|
||||
void *temp;
|
||||
int i;
|
||||
|
||||
/* NOTE:
|
||||
|
|
@ -160,8 +161,9 @@ retry:
|
|||
|
||||
/* Release resource for original g_pidhash, using new g_pidhash */
|
||||
|
||||
kmm_free(g_pidhash);
|
||||
temp = g_pidhash;
|
||||
g_pidhash = pidhash;
|
||||
kmm_free(temp);
|
||||
|
||||
/* Let's try every allowable pid again */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue