[PATCH] Char: isicom, fix close bug
commitc387fd85f84b9d89a75596325d8d6a0f730baf64
authorJiri Slaby <jirislaby@gmail.com>
Tue, 14 Nov 2006 23:30:17 +0000 (15 00:30 +0100)
committerLinus Torvalds <torvalds@woody.osdl.org>
Wed, 15 Nov 2006 00:02:02 +0000 (14 16:02 -0800)
tree3c161af64d908a29825a76acb556b7f4bd0dd4bf
parentf5ad1a785f7fb9e6f65ba437ba0a64cad4e97dae
[PATCH] Char: isicom, fix close bug

port is dereferenced even if it is NULL.  Dereference it _after_ the
check if (!port)...  Thanks Eric <ef87@yahoo.com> for reporting this.

This fixes

http://bugzilla.kernel.org/show_bug.cgi?id=7527

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/isicom.c