summaryrefslogtreecommitdiffstats
path: root/fs/char_dev.c
diff options
context:
space:
mode:
authorWen-chien Jesse Sung <jesse@cola.voip.idv.tw>2005-06-28 20:44:41 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-28 21:20:29 -0700
commit8d451687ca57371d303c5554b377d7f5c2ac6ae0 (patch)
treee77910e971918887b7dea8c93bf6e8804518def4 /fs/char_dev.c
parent7e568e62e9d4674d487cdc11f369e49e56ce6703 (diff)
downloadlinux-stable-8d451687ca57371d303c5554b377d7f5c2ac6ae0.tar.gz
linux-stable-8d451687ca57371d303c5554b377d7f5c2ac6ae0.tar.bz2
linux-stable-8d451687ca57371d303c5554b377d7f5c2ac6ae0.zip
[PATCH] fix semaphore handling in __unregister_chrdev_region
This up() should be down() instead. Signed-off-by: Wen-chien Jesse Sung <jesse@cola.voip.idv.tw> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/char_dev.c')
-rw-r--r--fs/char_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/char_dev.c b/fs/char_dev.c
index e82aac9cc2f5..a69a5d8a406f 100644
--- a/fs/char_dev.c
+++ b/fs/char_dev.c
@@ -150,7 +150,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 &&