Re: [PATCH] fix semaphore handling in __unregister_chrdev_region

From: Andrew Morton
Date: Tue Jun 28 2005 - 05:08:50 EST


Wen-chien Jesse Sung <jesse@xxxxxxxxxxxxxxxx> wrote:
>
> Maybe this up() should be down() instead?
>
> ...
> --- linux-2.6.12-git9.orig/fs/char_dev.c 2005-06-28 16:43:27.000000000 +0800
> +++ linux-2.6.12-git9/fs/char_dev.c 2005-06-28 16:52:01.000000000 +0800
> @@ -150,7 +150,7 @@ __unregister_chrdev_region(unsigned majo
> struct char_device_struct *cd = NULL, **cp;
> int i = major_to_index(major);
>
> - up(&chrdevs_lock);
> + down(&chrdevs_lock);

Heck. Thanks.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/