Files
twx-linux/tools
Ivan Orlov 4b894457e7 KVM: selftests: Add 'malloc' failure check in vcpu_save_state
[ Upstream commit 735b0e0f2d ]

There is a 'malloc' call in vcpu_save_state function, which can
be unsuccessful. This patch will add the malloc failure checking
to avoid possible null dereference and give more information
about test fail reasons.

Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Link: https://lore.kernel.org/r/20230322144528.704077-1-ivan.orlov0322@gmail.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-24 17:30:10 +01:00
..
2023-04-18 14:22:12 -07:00