Commit 8d451687 authored by Wen-chien Jesse Sung's avatar Wen-chien Jesse Sung Committed by Linus Torvalds
Browse files

[PATCH] fix semaphore handling in __unregister_chrdev_region

This up() should be down() instead.
Signed-off-by: default avatarWen-chien Jesse Sung <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 7e568e62
......@@ -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);
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