mm/shm/shmget.c: Should call shm_extend to allocate the physical memory

This commit is contained in:
Xiang Xiao 2019-01-26 10:14:42 -06:00 committed by Gregory Nutt
parent b5e2754d2d
commit fb4ab391f6

View File

@ -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 */