projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3feb52a
)
platform/x86: intel_pmt_class: Initial resource to 0
author
David E. Box
<david.e.box@linux.intel.com>
Wed, 17 Mar 2021 02:44:54 +0000
(19:44 -0700)
committer
Hans de Goede
<hdegoede@redhat.com>
Tue, 23 Mar 2021 20:05:47 +0000
(21:05 +0100)
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: David 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: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel_pmt_class.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/intel_pmt_class.c
b/drivers/platform/x86/intel_pmt_class.c
index 228e21f1ce5cf8e011b42e56acc6eec2f6338d87..c86ff15b1ed522be06f2c670a2f62c3bef70aa7d 100644
(file)
--- a/
drivers/platform/x86/intel_pmt_class.c
+++ b/
drivers/platform/x86/intel_pmt_class.c
@@
-219,7
+219,7
@@
static int intel_pmt_dev_register(struct intel_pmt_entry *entry,
struct intel_pmt_namespace *ns,
struct device *parent)
{
- struct resource res;
+ struct resource res
= {0}
;
struct device *dev;
int ret;