]> rtime.felk.cvut.cz Git - linux-imx.git/commit
Char: nozomi, fix tty->count counting
authorJiri Slaby <jslaby@suse.cz>
Thu, 29 Jul 2010 09:09:47 +0000 (11:09 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 20:47:46 +0000 (13:47 -0700)
commitee78bb95b7bea08b7774a02073ea2bb45611a9e1
tree76c0cf55276de4213d340afc92175e152f0afa0e
parente38018be3e7c03dd7e8f4ab0e1d55407cebbf89d
Char: nozomi, fix tty->count counting

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>
Cc: stable <stable@kernel.org> [.34, .35]
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/nozomi.c