Skip to content
Commit 609ce1f9 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov
Browse files

shmem: don't unmap a memrory region in restore_shmem_content()



This function doesn't allocate memory, so it should not release it.

CID 73380 (#1 of 1): Use after free (USE_AFTER_FREE)
14. deref_arg: Calling munmap dereferences freed pointer addr.

Signed-off-by: default avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
parent c8d8cad1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment