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
4b61f684
Commit
4b61f684
authored
Jan 26, 2004
by
Len Brown
Committed by
Len Brown
Jan 26, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ACPI] on SCI allocation failure, don't mistakenly free IRQ0
from Jes Sorensen
parent
b6655cd4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
drivers/acpi/osl.c
drivers/acpi/osl.c
+3
-2
No files found.
drivers/acpi/osl.c
View file @
4b61f684
...
...
@@ -258,13 +258,13 @@ acpi_os_install_interrupt_handler(u32 irq, OSD_HANDLER handler, void *context)
return
AE_OK
;
}
#endif
acpi_irq_irq
=
irq
;
acpi_irq_handler
=
handler
;
acpi_irq_context
=
context
;
if
(
request_irq
(
irq
,
acpi_irq
,
SA_SHIRQ
,
"acpi"
,
acpi_irq
))
{
printk
(
KERN_ERR
PREFIX
"SCI (IRQ%d) allocation failed
\n
"
,
irq
);
return
AE_NOT_ACQUIRED
;
}
acpi_irq_irq
=
irq
;
return
AE_OK
;
}
...
...
@@ -272,12 +272,13 @@ acpi_os_install_interrupt_handler(u32 irq, OSD_HANDLER handler, void *context)
acpi_status
acpi_os_remove_interrupt_handler
(
u32
irq
,
OSD_HANDLER
handler
)
{
if
(
acpi_irq_handler
)
{
if
(
irq
)
{
#ifdef CONFIG_IA64
irq
=
acpi_irq_to_vector
(
irq
);
#endif
free_irq
(
irq
,
acpi_irq
);
acpi_irq_handler
=
NULL
;
acpi_irq_irq
=
0
;
}
return
AE_OK
;
...
...
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