mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
mem/shmem: Use xmalloc in collect_sysv_shmem
To get error message in log if no memory available. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Reviewed-by: Mike Rapoport <rppt@linux.ibm.com> Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
committed by
Andrei Vagin
parent
67d5dbb995
commit
92717977cd
@@ -234,7 +234,7 @@ int collect_sysv_shmem(unsigned long shmid, unsigned long size)
|
||||
* Tasks will not modify this object, so don't
|
||||
* shmalloc() as we do it for anon shared mem
|
||||
*/
|
||||
si = malloc(sizeof(*si));
|
||||
si = xmalloc(sizeof(*si));
|
||||
if (!si)
|
||||
return -1;
|
||||
|
||||
|
Reference in New Issue
Block a user