mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Cc: Stable <[email protected]> (V3.9) Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
46e0cd87d9
commit
d2242a3843
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue