Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
6d25b688
Commit
6d25b688
authored
Apr 20, 2009
by
Ilpo Järvinen
Committed by
Grant Likely
Apr 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powerpc: Fix of_node_put() exit path in of_irq_map_one()
Signed-off-by:
Grant Likely
<
grant.likely@secretlab.ca
>
parent
8db70d3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
arch/powerpc/kernel/prom_parse.c
arch/powerpc/kernel/prom_parse.c
+5
-6
No files found.
arch/powerpc/kernel/prom_parse.c
View file @
6d25b688
...
...
@@ -971,7 +971,7 @@ int of_irq_map_one(struct device_node *device, int index, struct of_irq *out_irq
struct
device_node
*
p
;
const
u32
*
intspec
,
*
tmp
,
*
addr
;
u32
intsize
,
intlen
;
int
res
;
int
res
=
-
EINVAL
;
DBG
(
"of_irq_map_one: dev=%s, index=%d
\n
"
,
device
->
full_name
,
index
);
...
...
@@ -995,21 +995,20 @@ int of_irq_map_one(struct device_node *device, int index, struct of_irq *out_irq
/* Get size of interrupt specifier */
tmp
=
of_get_property
(
p
,
"#interrupt-cells"
,
NULL
);
if
(
tmp
==
NULL
)
{
of_node_put
(
p
);
return
-
EINVAL
;
}
if
(
tmp
==
NULL
)
goto
out
;
intsize
=
*
tmp
;
DBG
(
" intsize=%d intlen=%d
\n
"
,
intsize
,
intlen
);
/* Check index */
if
((
index
+
1
)
*
intsize
>
intlen
)
return
-
EINVAL
;
goto
out
;
/* Get new specifier and map it */
res
=
of_irq_map_raw
(
p
,
intspec
+
index
*
intsize
,
intsize
,
addr
,
out_irq
);
out:
of_node_put
(
p
);
return
res
;
}
...
...
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