nozomi: Fix close on error
authorAlan Cox <alan@redhat.com>
Mon, 13 Oct 2008 09:35:33 +0000 (10:35 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Oct 2008 16:51:39 +0000 (09:51 -0700)
commit716da631ae91fc5e9f8d5815f8ef5fbfed862b80
treecfb920b117c19b4f88722e910358c2a812349a7f
parent0c8946d97ae7d2d6691f8290a10faa63453b63f8
nozomi: Fix close on error

Nozomi assumes the close method isn't called if open errors. The tty layer
is different to other drives in this respect however. Pointed out by Denis J
Barrow.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/nozomi.c