]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel/uncore: Fix wrong box pointer check
authorKan Liang <kan.liang@intel.com>
Thu, 29 Jun 2017 19:09:26 +0000 (12:09 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 29 Jun 2017 19:28:13 +0000 (21:28 +0200)
commit2bf6b41ddc35e609eb819043e68c2908dc325216
tree7a4d448c21dc2ba5c6e81a2828f449f60dad31f3
parent18e0b984438bc7fc02657db7b9258aa5445b36bb
perf/x86/intel/uncore: Fix wrong box pointer check

Should not init a NULL box. It will cause system crash.
The issue looks like caused by a typo.

This was not noticed because there is no NULL box. Also, for most
boxes, they are enabled by default. The init code is not critical.

Fixes: ceddf61fb0f2 ("perf/x86/intel/uncore: Make package handling more robust")
Signed-off-by: Kan Liang <kan.liang@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/20170629190926.2456-1-kan.liang@intel.com
arch/x86/events/intel/uncore.c