Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
bc396692
Commit
bc396692
authored
Apr 16, 2010
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugzilla-15749' into release
parents
dc57da38
2060c445
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
drivers/acpi/acpica/exprep.c
drivers/acpi/acpica/exprep.c
+11
-6
No files found.
drivers/acpi/acpica/exprep.c
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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment