Skip to content

Commit

Permalink
[PATCH] fix semaphore handling in __unregister_chrdev_region
Browse files Browse the repository at this point in the history
This up() should be down() instead.

Signed-off-by: Wen-chien Jesse Sung <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
jessesung authored and Linus Torvalds committed Jun 29, 2005
1 parent 7e568e6 commit 8d45168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/char_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 8d45168

Please sign in to comment.