Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KED Linux Kernel Fork
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KED Software Projects
Miscellaneous
KED Linux Kernel Fork
Commits
bc396692
Commit
bc396692
authored
14 years ago
by
Len Brown
Browse files
Options
Downloads
Plain Diff
Merge branch 'bugzilla-15749' into release
parents
dc57da38
2060c445
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/acpi/acpica/exprep.c
+11
-6
11 additions, 6 deletions
drivers/acpi/acpica/exprep.c
with
11 additions
and
6 deletions
drivers/acpi/acpica/exprep.c
+
11
−
6
View file @
bc396692
...
...
@@ -471,13 +471,18 @@ acpi_status acpi_ex_prep_field_value(struct acpi_create_field_info *info)
/* allow full data read from EC address space */
if
(
obj_desc
->
field
.
region_obj
->
region
.
space_id
==
ACPI_ADR_SPACE_EC
)
{
if
(
obj_desc
->
common_field
.
bit_length
>
8
)
obj_desc
->
common_field
.
access_bit_width
=
ACPI_ROUND_UP
(
obj_desc
->
common_field
.
bit_length
,
8
);
if
(
obj_desc
->
common_field
.
bit_length
>
8
)
{
unsigned
width
=
ACPI_ROUND_BITS_UP_TO_BYTES
(
obj_desc
->
common_field
.
bit_length
);
// access_bit_width is u8, don't overflow it
if
(
width
>
8
)
width
=
8
;
obj_desc
->
common_field
.
access_byte_width
=
ACPI_DIV_8
(
obj_desc
->
common_field
.
access_bit_width
);
width
;
obj_desc
->
common_field
.
access_bit_width
=
8
*
width
;
}
}
ACPI_DEBUG_PRINT
((
ACPI_DB_BFIELD
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment