]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
Drivers: hv: Fix a bug in get_vp_index()
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 17 May 2013 16:30:35 +0000 (09:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Jun 2013 19:52:26 +0000 (12:52 -0700)
commit d2242a384355773c711a936522bcfae0f35f8c2a upstream.

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 <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel_mgmt.c

index ff1be167eb040f76950f708a308186d30615ac6f..421d6078d81519c31e4840316717947e00938bad 100644 (file)
@@ -318,7 +318,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];
 }
 
 /*