]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jul 2017 12:41:39 +0000 (14:41 +0200)
commitbdbe850337374f8aeb49a2d40b9cfe277bbdfcb1
treee6590e692866d65f6539d62f16049ab0d5f44ee9
parent60c9685b4287d62fe2621c3f27abc9e4b2906f28
perf/x86/intel/uncore: Fix wrong box pointer check

commit 80c65fdb4c6920e332a9781a3de5877594b07522 upstream.

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: fff4b87e594a ("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>
Link: http://lkml.kernel.org/r/20170629190926.2456-1-kan.liang@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/events/intel/uncore.c