Skip to content

Commit

Permalink
io: make sure the global lock is released for locked IndexField
Browse files Browse the repository at this point in the history
Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
  • Loading branch information
d-tatianin committed Dec 22, 2024
1 parent c608181 commit 5547881
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions source/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,18 +209,22 @@ static uacpi_status access_field_unit(

switch (op) {
case UACPI_REGION_OP_READ:
return uacpi_read_field_unit(
ret = uacpi_read_field_unit(
field->data, in_out, field->access_width_bytes
);
break;
case UACPI_REGION_OP_WRITE:
return uacpi_write_field_unit(
ret = uacpi_write_field_unit(
field->data, in_out, field->access_width_bytes
);
break;
default:
ret = UACPI_STATUS_INVALID_ARGUMENT;
goto out;
break;
}

goto out;

default:
uacpi_error("invalid field unit kind %d\n", field->kind);
ret = UACPI_STATUS_INVALID_ARGUMENT;
Expand Down

0 comments on commit 5547881

Please sign in to comment.