linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paul Fulghum <paulkf@microgate.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH][RFC] ptmx fix duplicate idr_remove
Date: Wed, 05 Apr 2006 08:36:14 -0500	[thread overview]
Message-ID: <4433C7CE.2090001@microgate.com> (raw)
In-Reply-To: <20060405005733.29b6868f.akpm@osdl.org>

Andrew Morton wrote:
> Except for this, in release_dev():
> 
> 	/* check whether both sides are closing ... */
> 	if (!tty_closing || (o_tty && !o_tty_closing))
> 		return;
> 
> if that's taken, we won't have run idr_remove() at all?

ptmx_open creates the ptm/pts pair.

If ptmx_open fails, the conditions
for releasing the ptm (and associated pts)
have been met: no active references.

-- 
Paul Fulghum
Microgate Systems, Ltd.

      reply	other threads:[~2006-04-05 13:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-04 18:35 [PATCH][RFC] ptmx fix duplicate idr_remove Paul Fulghum
2006-04-05  7:57 ` Andrew Morton
2006-04-05 13:36   ` Paul Fulghum [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=4433C7CE.2090001@microgate.com \
    --to=paulkf@microgate.com \
    --cc=akpm@osdl.org \
    --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;
as well as URLs for NNTP newsgroup(s).