From: Jiri Slaby <jirislaby@gmail.com>
To: Jiri Slaby <jslaby@suse.cz>
Cc: gregkh@suse.de, linux-kernel@vger.kernel.org,
Alan Cox s <alan@linux.intel.com>,
stable@kernel.org
Subject: Re: [PATCH 1/1] Char: nozomi, fix tty->count counting
Date: Thu, 29 Jul 2010 11:13:52 +0200 [thread overview]
Message-ID: <4C514650.8010305@gmail.com> (raw)
In-Reply-To: <1280394587-31670-1-git-send-email-jslaby@suse.cz>
On 07/29/2010 11:09 AM, Jiri Slaby wrote:
> Currently ntty_install omits to increment tty count and we get the
> following warnings:
> Warning: dev (noz2) tty->count(0) != #fd's(1) in tty_open
>
> So to fix that, add one tty->count++ there.
>
> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
> Cc: Alan Cox <alan@linux.intel.com>
BTW introduced in 266794eb7 (nozomi: Add tty_port usage) which is in
.34. So may be a stable material too...
> ---
> drivers/char/nozomi.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/char/nozomi.c b/drivers/char/nozomi.c
> index d578449..7f9b858 100644
> --- a/drivers/char/nozomi.c
> +++ b/drivers/char/nozomi.c
> @@ -1611,6 +1611,7 @@ static int ntty_install(struct tty_driver *driver, struct tty_struct *tty)
> ret = tty_init_termios(tty);
> if (ret == 0) {
> tty_driver_kref_get(driver);
> + tty->count++;
> driver->ttys[tty->index] = tty;
> }
> return ret;
thanks,
--
js
next prev parent reply other threads:[~2010-07-29 9:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-29 9:09 [PATCH 1/1] Char: nozomi, fix tty->count counting Jiri Slaby
2010-07-29 9:13 ` Jiri Slaby [this message]
2010-07-29 9:46 ` [PATCH 1/1] Char: nozomi, set tty->driver_data appropriately Jiri Slaby
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=4C514650.8010305@gmail.com \
--to=jirislaby@gmail.com \
--cc=alan@linux.intel.com \
--cc=gregkh@suse.de \
--cc=jslaby@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@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