Commit b4a3c2ae authored by Wen-chien Jesse Sung's avatar Wen-chien Jesse Sung Committed by Greg Kroah-Hartman

[PATCH] fix semaphore handling in __unregister_chrdev_region

This up() should be down() instead.
Signed-off-by: default avatarWen-chien Jesse Sung <jesse@cola.voip.idv.tw>
Signed-off-by: default avatarChris Wright <chrisw@osdl.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b050ac70
......@@ -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 &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment