OSDN Git Service

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>
Fri, 13 Aug 2010 20:30:45 +0000 (13:30 -0700)
commit8642acfa5eb90d591f72ef762ac7e188b6e30e96
treefab29f42c71707f26d78b265e9b5c4816c3f371d
parenta88549a429aefa85807f92d19056824497ddd8cd
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