Commit 9a2f0041 authored by David E. Box's avatar David E. Box Committed by Jun Tian
Browse files

platform/x86: intel_pmt_class: Initial resource to 0

mainline inclusion
from mainline-v5.13-rc1
commit 501bb68a
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I596K9


CVE: NA

Intel-SIG: commit 501bb68a platform/x86: intel_pmt_class: Initial resource
to 0.
Backport for intel PMT (Platform Monitoring Technology) support

--------------------------------

Initialize the struct resource in intel_pmt_dev_register to zero to avoid a
fault should the char *name field be non-zero.

Signed-off-by: default avatarDavid E. Box <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20210317024455.3071477-1-david.e.box@linux.intel.com


Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avataryingbao jia <yingbao.jia@intel.com>
Signed-off-by: default avatarJun Tian <jun.j.tian@intel.com>
parent ad0c4814
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment