forked from nuttx/nuttx-update
mm/shm/shmget.c: Should call shm_extend to allocate the physical memory
This commit is contained in:
parent
b5e2754d2d
commit
fb4ab391f6
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ static int shm_create(key_t key, size_t size, int shmflg)
|
|||
* size of zero).
|
||||
*/
|
||||
|
||||
ret = shm_reserve(shmid, size);
|
||||
ret = shm_extend(shmid, size);
|
||||
if (ret < 0)
|
||||
{
|
||||
/* Free any partial allocations and unreserve the region */
|
||||
|
|
Loading…
Reference in a new issue