diff options
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/apei/erst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/apei/erst.c b/drivers/acpi/apei/erst.c index 2ca59dc69f7f..5e820ea35570 100644 --- a/drivers/acpi/apei/erst.c +++ b/drivers/acpi/apei/erst.c | |||
@@ -1165,7 +1165,7 @@ static int __init erst_init(void) | |||
1165 | goto err_release_erange; | 1165 | goto err_release_erange; |
1166 | 1166 | ||
1167 | buf = kmalloc(erst_erange.size, GFP_KERNEL); | 1167 | buf = kmalloc(erst_erange.size, GFP_KERNEL); |
1168 | mutex_init(&erst_info.buf_mutex); | 1168 | spin_lock_init(&erst_info.buf_lock); |
1169 | if (buf) { | 1169 | if (buf) { |
1170 | erst_info.buf = buf + sizeof(struct cper_pstore_record); | 1170 | erst_info.buf = buf + sizeof(struct cper_pstore_record); |
1171 | erst_info.bufsize = erst_erange.size - | 1171 | erst_info.bufsize = erst_erange.size - |