All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Jonathan Corbet <corbet@lwn.net>
Cc: linux-kernel@vger.kernel.org, akpm@osdl.org,
	viro@parcelfarce.linux.theplanet.co.uk
Subject: Re: [PATCH] Take 2: cdev_unmap()
Date: Thu, 5 Feb 2004 10:15:50 -0800	[thread overview]
Message-ID: <20040205181550.GF13075@kroah.com> (raw)
In-Reply-To: <20040205180103.32517.qmail@lwn.net>

On Thu, Feb 05, 2004 at 11:01:03AM -0700, Jonathan Corbet wrote:
> I didn't get any responses to my last posting on cdev_unmap(); I take it
> that means nobody objects :)
> 
> To recap my argument: the current cdev implementation keeps an uncounted
> reference to every cdev in cdev_map.  Creators of cdevs must know to call
> cdev_unmap() with the same arguments they passed to cdev_add() before
> releasing the device, or that reference will remain and will oops the
> kernel should user space attempt to open the (missing) device.  It's an
> easy mistake to make, and, IMO, entirely unnecessary; the cdev code should
> be able to do its own bookkeeping.
> 
> So, does anybody have a reason why this shouldn't go in?  Al, have I missed
> something?

I sure like it, it starts to make the cdev interface easier to use.  

Al, unless you object, I'll add this to my driver bk tree which will get
sucked into -mm and then send it off to Linus after a bit of testing.

thanks,

greg k-h

      reply	other threads:[~2004-02-05 18:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-05 18:01 [PATCH] Take 2: cdev_unmap() Jonathan Corbet
2004-02-05 18:15 ` Greg KH [this message]

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=20040205181550.GF13075@kroah.com \
    --to=greg@kroah.com \
    --cc=akpm@osdl.org \
    --cc=corbet@lwn.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@parcelfarce.linux.theplanet.co.uk \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.