]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 5 Jul 2017 16:36:46 +0000 (11:36 -0500)
commit094062100841a6f2c7fb8d093c78e4e895180e0e
treed9d7a777eb7d8b0f6d301ad9f1d9849fdb5d461e
parent995382f1df857c2270d14da70898eed9a86c0c4b
perf/x86/intel/uncore: Fix wrong box pointer check

BugLink: http://bugs.launchpad.net/bugs/1702515
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>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/x86/events/intel/uncore.c