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
705a1dc2
Commit
705a1dc2
authored
Oct 06, 2003
by
Stephen Hemminger
Committed by
David S. Miller
Oct 06, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IRDA]: Fix spinlock badness in last dongle changes.
parent
28e347de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
net/irda/irda_device.c
net/irda/irda_device.c
+10
-3
No files found.
net/irda/irda_device.c
View file @
705a1dc2
...
...
@@ -90,6 +90,7 @@ int __init irda_device_init( void)
printk
(
KERN_WARNING
"IrDA: Can't allocate dongles hashbin!
\n
"
);
return
-
ENOMEM
;
}
spin_lock_init
(
&
dongles
->
hb_spinlock
);
tasks
=
hashbin_new
(
HB_LOCK
);
if
(
tasks
==
NULL
)
{
...
...
@@ -104,14 +105,20 @@ int __init irda_device_init( void)
return
0
;
}
static
void
__exit
leftover_dongle
(
void
*
arg
)
{
struct
dongle_reg
*
reg
=
arg
;
printk
(
KERN_WARNING
"IrDA: Dongle type %x not unregistered
\n
"
,
reg
->
type
);
}
void
__exit
irda_device_cleanup
(
void
)
{
IRDA_DEBUG
(
4
,
"%s()
\n
"
,
__FUNCTION__
);
hashbin_delete
(
tasks
,
(
FREE_FUNC
)
__irda_task_delete
);
spin_lock
(
&
dongles
->
hb_spinlock
);
hashbin_delete
(
dongles
,
NULL
);
spin_unlock
(
&
dongles
->
hb_spinlock
);
hashbin_delete
(
dongles
,
leftover_dongle
);
}
/*
...
...
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