mm/shm/shmget.c: Should call shm_extend to allocate the physical memory
This commit is contained in:
parent
b5e2754d2d
commit
fb4ab391f6
@ -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 New Issue
Block a user