linux-stable/drivers/virt/acrn
Shuo Liu 1201d68f47 virt: acrn: Correct type casting of argument of copy_from_user()
hsm.c:336:50: warning: incorrect type in argument 2 (different address spaces)
hsm.c:336:50:    expected void const [noderef] __user *from
hsm.c:336:50:    got void *

This patch fixes above sparse warning.

Fixes: 3d679d5aec ("virt: acrn: Introduce interfaces to query C-states and P-states allowed by hypervisor")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Shuo Liu <shuo.a.liu@intel.com>
Link: https://lore.kernel.org/r/20210310153708.17451-1-shuo.a.liu@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-10 16:59:50 +01:00
..
acrn_drv.h virt: acrn: Introduce irqfd 2021-02-09 10:58:19 +01:00
hsm.c virt: acrn: Correct type casting of argument of copy_from_user() 2021-03-10 16:59:50 +01:00
hypercall.h virt: acrn: Introduce an interface for Service VM to control vCPU 2021-02-09 10:58:19 +01:00
ioeventfd.c virt: acrn: Introduce ioeventfd 2021-02-09 10:58:19 +01:00
ioreq.c virt: acrn: Introduce I/O ranges operation interfaces 2021-02-09 10:58:19 +01:00
irqfd.c virt: acrn: Use EPOLLIN instead of POLLIN 2021-03-10 09:50:23 +01:00
Kconfig virt: acrn: Introduce ioeventfd 2021-02-09 10:58:19 +01:00
Makefile virt: acrn: Introduce irqfd 2021-02-09 10:58:19 +01:00
mm.c virt: acrn: Introduce EPT mapping management 2021-02-09 10:58:19 +01:00
vm.c virt: acrn: Introduce irqfd 2021-02-09 10:58:19 +01:00