Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73af2d59 authored by Lv Zheng's avatar Lv Zheng Committed by Rafael J. Wysocki
Browse files

ACPI / debugger: Fix an issue a flag is modified without locking



There is one line of code, executed out of locking due to rebase mistakes.
This patch fixes this issue.

Signed-off-by: default avatarLv Zheng <lv.zheng@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 836d0830
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -516,10 +516,10 @@ static int acpi_aml_open(struct inode *inode, struct file *file)
			ret = -EINVAL;
			goto err_lock;
		}
		acpi_aml_io.flags |= ACPI_AML_OPENED;
		pr_debug("Debugger thread initialized.\n");

		mutex_lock(&acpi_aml_io.lock);
		acpi_aml_io.flags |= ACPI_AML_OPENED;
		acpi_aml_io.out_crc.head = acpi_aml_io.out_crc.tail = 0;
		acpi_aml_io.in_crc.head = acpi_aml_io.in_crc.tail = 0;
		pr_debug("Debugger interface opened.\n");