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
Kirill Smelkov
linux
Commits
32987583
Commit
32987583
authored
Jan 17, 2012
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'acpica-validate-address-regression' into next
parents
805a6af8
da4d8b28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
drivers/acpi/acpica/dsargs.c
drivers/acpi/acpica/dsargs.c
+24
-0
No files found.
drivers/acpi/acpica/dsargs.c
View file @
32987583
...
...
@@ -387,5 +387,29 @@ acpi_status acpi_ds_get_region_arguments(union acpi_operand_object *obj_desc)
status
=
acpi_ds_execute_arguments
(
node
,
node
->
parent
,
extra_desc
->
extra
.
aml_length
,
extra_desc
->
extra
.
aml_start
);
if
(
ACPI_FAILURE
(
status
))
{
return_ACPI_STATUS
(
status
);
}
/* Validate the region address/length via the host OS */
status
=
acpi_os_validate_address
(
obj_desc
->
region
.
space_id
,
obj_desc
->
region
.
address
,
(
acpi_size
)
obj_desc
->
region
.
length
,
acpi_ut_get_node_name
(
node
));
if
(
ACPI_FAILURE
(
status
))
{
/*
* Invalid address/length. We will emit an error message and mark
* the region as invalid, so that it will cause an additional error if
* it is ever used. Then return AE_OK.
*/
ACPI_EXCEPTION
((
AE_INFO
,
status
,
"During address validation of OpRegion [%4.4s]"
,
node
->
name
.
ascii
));
obj_desc
->
common
.
flags
|=
AOPOBJ_INVALID
;
status
=
AE_OK
;
}
return_ACPI_STATUS
(
status
);
}
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