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
nexedi
linux
Commits
4cd74f1d
Commit
4cd74f1d
authored
Feb 14, 2005
by
Art Haas
Committed by
David S. Miller
Feb 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]:Check prom_getproperty() return value in prom_nodematch().
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
49129844
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
arch/sparc/prom/tree.c
arch/sparc/prom/tree.c
+4
-1
No files found.
arch/sparc/prom/tree.c
View file @
4cd74f1d
...
@@ -176,8 +176,11 @@ void prom_getstring(int node, char *prop, char *user_buf, int ubuf_size)
...
@@ -176,8 +176,11 @@ void prom_getstring(int node, char *prop, char *user_buf, int ubuf_size)
*/
*/
int
prom_nodematch
(
int
node
,
char
*
name
)
int
prom_nodematch
(
int
node
,
char
*
name
)
{
{
int
error
;
static
char
namebuf
[
128
];
static
char
namebuf
[
128
];
prom_getproperty
(
node
,
"name"
,
namebuf
,
sizeof
(
namebuf
));
error
=
prom_getproperty
(
node
,
"name"
,
namebuf
,
sizeof
(
namebuf
));
if
(
error
==
-
1
)
return
0
;
if
(
strcmp
(
namebuf
,
name
)
==
0
)
return
1
;
if
(
strcmp
(
namebuf
,
name
)
==
0
)
return
1
;
return
0
;
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