From: K. Y. Srinivasan Date: Fri, 17 May 2013 16:30:35 +0000 (-0700) Subject: Drivers: hv: Fix a bug in get_vp_index() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d2242a384355773c711a936522bcfae0f35f8c2a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Drivers: hv: Fix a bug in get_vp_index() Linux' notion of cpuid is different from the Host's notion of CPUID. In the call to bind the channel interrupts, we should use the host's notion of CPU Ids. Fix this bug. Signed-off-by: K. Y. Srinivasan Cc: Stable (V3.9) Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index bad8128b283a..21ef68934a20 100644 --- a/drivers/hv/channel_mgmt.c +++ b/drivers/hv/channel_mgmt.c @@ -329,7 +329,7 @@ static u32 get_vp_index(uuid_le *type_guid) return 0; } cur_cpu = (++next_vp % max_cpus); - return cur_cpu; + return hv_context.vp_index[cur_cpu]; } /*