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
0aba0ab8
Commit
0aba0ab8
authored
Nov 20, 2015
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pm-sleep'
* pm-sleep: PM / wakeirq: check that wake IRQ is valid before accepting it
parents
9832bf3a
6f9b36cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
drivers/base/power/wakeirq.c
drivers/base/power/wakeirq.c
+6
-0
No files found.
drivers/base/power/wakeirq.c
View file @
0aba0ab8
...
...
@@ -68,6 +68,9 @@ int dev_pm_set_wake_irq(struct device *dev, int irq)
struct
wake_irq
*
wirq
;
int
err
;
if
(
irq
<
0
)
return
-
EINVAL
;
wirq
=
kzalloc
(
sizeof
(
*
wirq
),
GFP_KERNEL
);
if
(
!
wirq
)
return
-
ENOMEM
;
...
...
@@ -167,6 +170,9 @@ int dev_pm_set_dedicated_wake_irq(struct device *dev, int irq)
struct
wake_irq
*
wirq
;
int
err
;
if
(
irq
<
0
)
return
-
EINVAL
;
wirq
=
kzalloc
(
sizeof
(
*
wirq
),
GFP_KERNEL
);
if
(
!
wirq
)
return
-
ENOMEM
;
...
...
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