projects
/
wrapfs-3.2.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b050ac7
)
[PATCH] fix semaphore handling in __unregister_chrdev_region
author
Wen-chien Jesse Sung
<jesse@cola.voip.idv.tw>
Thu, 30 Jun 2005 03:42:10 +0000
(11:42 +0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 15 Jul 2005 21:15:27 +0000
(14:15 -0700)
This up() should be down() instead.
Signed-off-by: Wen-chien Jesse Sung <jesse@cola.voip.idv.tw>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/char_dev.c
patch
|
blob
|
history
diff --git
a/fs/char_dev.c
b/fs/char_dev.c
index c1e3537909fc1ae78f829220700810b78f371480..e8fb88b7521f648d3471043c73cee47742bda431 100644
(file)
--- a/
fs/char_dev.c
+++ b/
fs/char_dev.c
@@
-139,7
+139,7
@@
__unregister_chrdev_region(unsigned major, unsigned baseminor, int minorct)
struct char_device_struct *cd = NULL, **cp;
int i = major_to_index(major);
-
up
(&chrdevs_lock);
+
down
(&chrdevs_lock);
for (cp = &chrdevs[i]; *cp; cp = &(*cp)->next)
if ((*cp)->major == major &&
(*cp)->baseminor == baseminor &&