diff options
| author | Peter Zijlstra <[email protected]> | 2016-03-18 15:03:46 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2016-03-19 09:26:40 +0000 |
| commit | b5d5f27d938fb6fc8d3202704e699d2694a02da6 (patch) | |
| tree | 79298ddfe7f4f8a0a39f66b401d6ddb5bf856a71 /net/switchdev/switchdev.c | |
| parent | x86/irq: Cure live lock in fixup_irqs() (diff) | |
| download | kernel-b5d5f27d938fb6fc8d3202704e699d2694a02da6.tar.gz kernel-b5d5f27d938fb6fc8d3202704e699d2694a02da6.zip | |
x86/topology: Fix logical package mapping
That first branch testing pkg against __max_logical_packages is wrong,
because if the first pkg id is larger, then the find_first_zero will
find us logical package id 0. However, if the second pkg id is indeed
0, we'll again claim it without testing if it was already taken.
Also, it fails to print the mapping.
Fixes: 1f12e32f4cd5 ("x86/topology: Create logical package id")
Reported-by: Xiong Zhou <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: Mike Galbraith <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
