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
f6d166b1
Commit
f6d166b1
authored
Feb 17, 2003
by
Andy Grover
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACPI: Decrease size of override's static array, add a define for the length,
and print a msg if used
parent
4f0d66b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
drivers/acpi/osl.c
drivers/acpi/osl.c
+7
-3
No files found.
drivers/acpi/osl.c
View file @
f6d166b1
...
...
@@ -203,7 +203,9 @@ acpi_os_get_physical_address(void *virt, acpi_physical_address *phys)
return
AE_OK
;
}
static
char
acpi_os_name
[
200
]
=
ACPI_OS_NAME
;
#define ACPI_MAX_OVERRIDE_LEN 100
static
char
acpi_os_name
[
ACPI_MAX_OVERRIDE_LEN
];
acpi_status
acpi_os_predefined_override
(
const
struct
acpi_predefined_names
*
init_val
,
...
...
@@ -213,8 +215,10 @@ acpi_os_predefined_override (const struct acpi_predefined_names *init_val,
return
AE_BAD_PARAMETER
;
*
new_val
=
NULL
;
if
(
!
memcmp
(
init_val
->
name
,
"_OS_"
,
4
))
if
(
!
memcmp
(
init_val
->
name
,
"_OS_"
,
4
)
&&
strlen
(
acpi_os_name
))
{
printk
(
KERN_INFO
PREFIX
"Overriding _OS definition
\n
"
);
*
new_val
=
acpi_os_name
;
}
return
AE_OK
;
}
...
...
@@ -875,7 +879,7 @@ int __init
acpi_os_name_setup
(
char
*
str
)
{
char
*
p
=
acpi_os_name
;
int
count
=
199
;
int
count
=
ACPI_MAX_OVERRIDE_LEN
-
1
;
if
(
!
str
||
!*
str
)
return
0
;
...
...
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