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
6fab2600
Commit
6fab2600
authored
Nov 14, 2007
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Missing mdesc_release() in ldc_init().
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
e3c0ac04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
arch/sparc64/kernel/ldc.c
arch/sparc64/kernel/ldc.c
+10
-5
No files found.
arch/sparc64/kernel/ldc.c
View file @
6fab2600
...
...
@@ -2338,6 +2338,7 @@ static int __init ldc_init(void)
unsigned
long
major
,
minor
;
struct
mdesc_handle
*
hp
;
const
u64
*
v
;
int
err
;
u64
mp
;
hp
=
mdesc_grab
();
...
...
@@ -2345,29 +2346,33 @@ static int __init ldc_init(void)
return
-
ENODEV
;
mp
=
mdesc_node_by_name
(
hp
,
MDESC_NODE_NULL
,
"platform"
);
err
=
-
ENODEV
;
if
(
mp
==
MDESC_NODE_NULL
)
return
-
ENODEV
;
goto
out
;
v
=
mdesc_get_property
(
hp
,
mp
,
"domaining-enabled"
,
NULL
);
if
(
!
v
)
return
-
ENODEV
;
goto
out
;
major
=
1
;
minor
=
0
;
if
(
sun4v_hvapi_register
(
HV_GRP_LDOM
,
major
,
&
minor
))
{
printk
(
KERN_INFO
PFX
"Could not register LDOM hvapi.
\n
"
);
return
-
ENODEV
;
goto
out
;
}
printk
(
KERN_INFO
"%s"
,
version
);
if
(
!*
v
)
{
printk
(
KERN_INFO
PFX
"Domaining disabled.
\n
"
);
return
-
ENODEV
;
goto
out
;
}
ldom_domaining_enabled
=
1
;
err
=
0
;
return
0
;
out:
mdesc_release
(
hp
);
return
err
;
}
core_initcall
(
ldc_init
);
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