Skip to content
Commit ecd1735f authored by Xiaolong Huang's avatar Xiaolong Huang Committed by Greg Kroah-Hartman
Browse files

virt: acrn: fix a memory leak in acrn_dev_ioctl()



The vm_param and cpu_regs need to be freed via kfree()
before return -EINVAL error.

Fixes: 9c5137ae ("virt: acrn: Introduce VM management interfaces")
Fixes: 2ad2aaee ("virt: acrn: Introduce an ioctl to set vCPU registers state")
Signed-off-by: default avatarXiaolong Huang <butterflyhuangxx@gmail.com>
Signed-off-by: default avatarFei Li <fei1.li@intel.com>
Link: https://lore.kernel.org/r/20220308092047.1008409-1-butterflyhuangxx@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8a6e85f7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment