]> git.baikalelectronics.ru Git - kernel.git/commit
virt: acrn: Correct type casting of argument of copy_from_user()
authorShuo Liu <shuo.a.liu@intel.com>
Wed, 10 Mar 2021 15:37:08 +0000 (23:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 15:59:50 +0000 (16:59 +0100)
commit675346519b2ae7ff6d32f426d03dacebb19c9ebc
treeb4d23de51bc3030657891a28179c6b2f53c35fb5
parent64a6beabb4e41303a7d3b765eddc509465582cd4
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: bd43d01a0553 ("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>
drivers/virt/acrn/hsm.c