diff options
author | Mike Travis <[email protected]> | 2019-09-10 09:58:47 -0500 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2019-10-07 13:42:11 +0200 |
commit | 4fb7d08707565d27ec84a364d011043ade8c38b4 (patch) | |
tree | 92cb4ef32e7b33f8cd4ef5d6a01387e9840dcca5 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | df55029f7ea65d8c653a79dd728918dfe25b1356 (diff) |
x86/platform/uv: Account for UV Hubless in is_uvX_hub Ops
The references in the is_uvX_hub() function uses the hub_info pointer
which will be NULL when the system is hubless. This change avoids
that NULL dereference. It is also an optimization in performance.
Signed-off-by: Mike Travis <[email protected]>
Reviewed-by: Steve Wahl <[email protected]>
Reviewed-by: Dimitri Sivanich <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Hedi Berriche <[email protected]>
Cc: Justin Ernst <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Russ Anderson <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions