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
52815e81
Commit
52815e81
authored
Jun 10, 2003
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[driver model] Don't Oops when registering global sysdev drivers.
parent
d507789a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
drivers/base/sys.c
drivers/base/sys.c
+1
-1
No files found.
drivers/base/sys.c
View file @
52815e81
...
...
@@ -104,7 +104,7 @@ int sysdev_driver_register(struct sysdev_class * cls,
struct
sysdev_driver
*
drv
)
{
down_write
(
&
system_subsys
.
rwsem
);
if
(
kset_get
(
&
cls
->
kset
))
if
(
cls
&&
kset_get
(
&
cls
->
kset
))
list_add_tail
(
&
drv
->
entry
,
&
cls
->
drivers
);
else
list_add_tail
(
&
drv
->
entry
,
&
global_drivers
);
...
...
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