Char: nozomi, fix tty->count counting
commitbf7ce0291fb87742e7093c34bf858d6ae1cb41da
authorJiri Slaby <jslaby@suse.cz>
Thu, 29 Jul 2010 09:09:47 +0000 (29 11:09 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:27:16 +0000 (13 13:27 -0700)
treed18ad1c741e171ff3267e2203d9e38c8a3f59a89
parent52f2ce19c8dacce192b43eff3707ca682f934d96
Char: nozomi, fix tty->count counting

commit ee78bb95b7bea08b7774a02073ea2bb45611a9e1 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/nozomi.c