projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drm/i915: use linux/stddef.h due to "isystem: trim/fixup stdarg.h and other headers"
[linux-2.6-microblaze.git]
/
drivers
/
acpi
/
acpi_extlog.c
diff --git
a/drivers/acpi/acpi_extlog.c
b/drivers/acpi/acpi_extlog.c
index
f138e12
..
72f1fb7
100644
(file)
--- a/
drivers/acpi/acpi_extlog.c
+++ b/
drivers/acpi/acpi_extlog.c
@@
-222,9
+222,9
@@
static int __init extlog_init(void)
u64 cap;
int rc;
- rdmsrl(MSR_IA32_MCG_CAP, cap);
-
-
if (!(cap & MCG_ELOG_P) ||
!extlog_get_l1addr())
+ if (rdmsrl_safe(MSR_IA32_MCG_CAP, &cap) ||
+ !(cap & MCG_ELOG_P) ||
+
!extlog_get_l1addr())
return -ENODEV;
rc = -EINVAL;