mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-19 03:31:25 +00:00
Merge branch 'acpi-ec'
* acpi-ec: ACPI / EC: Ensure lock is acquired before accessing ec struct members
This commit is contained in:
commit
dcaea2c18e
@ -173,9 +173,10 @@ static void start_transaction(struct acpi_ec *ec)
|
|||||||
static void advance_transaction(struct acpi_ec *ec, u8 status)
|
static void advance_transaction(struct acpi_ec *ec, u8 status)
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
struct transaction *t = ec->curr;
|
struct transaction *t;
|
||||||
|
|
||||||
spin_lock_irqsave(&ec->lock, flags);
|
spin_lock_irqsave(&ec->lock, flags);
|
||||||
|
t = ec->curr;
|
||||||
if (!t)
|
if (!t)
|
||||||
goto unlock;
|
goto unlock;
|
||||||
if (t->wlen > t->wi) {
|
if (t->wlen > t->wi) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user