mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wen-chien Jesse Sung <jesse@cola.voip.idv.tw>
To: linux-kernel@vger.kernel.org
Cc: greg@kroah.com, akpm@osdl.org
Subject: [PATCH] fix semaphore handling in __unregister_chrdev_region
Date: Tue, 28 Jun 2005 17:55:44 +0800	[thread overview]
Message-ID: <42C11EA0.2040307@cola.voip.idv.tw> (raw)

[-- Attachment #1: Type: text/plain, Size: 146 bytes --]

Hi,

Maybe this up() should be down() instead?

Best Regards,
Wen-chien Jesse Sung


Signed-off-by: Wen-chien Jesse Sung <jesse@cola.voip.idv.tw>

[-- Attachment #2: fix-semaphore-handling-in-__unregister_chrdev_region.diff --]
[-- Type: text/plain, Size: 456 bytes --]

--- 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);
 	for (cp = &chrdevs[i]; *cp; cp = &(*cp)->next)
 		if ((*cp)->major == major &&
 		    (*cp)->baseminor == baseminor &&

             reply	other threads:[~2005-06-28  9:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-28  9:55 Wen-chien Jesse Sung [this message]
2005-06-28 10:06 ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42C11EA0.2040307@cola.voip.idv.tw \
    --to=jesse@cola.voip.idv.tw \
    --cc=akpm@osdl.org \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®