diff options
author | Wen-chien Jesse Sung <jesse@cola.voip.idv.tw> | 2005-06-30 11:42:10 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-07-15 14:15:27 -0700 |
commit | b4a3c2ae79b275a58192f418aa33f156fb648f38 (patch) | |
tree | ab4acd043029d84cfc67289e5e5ba3b51196da3f | |
parent | b050ac70a8b72a48a8ab3130c35dfe38850b668b (diff) |
[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: Chris Wright <chrisw@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | fs/char_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/char_dev.c b/fs/char_dev.c index c1e3537909fc..e8fb88b7521f 100644 --- 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 && |