Char: isicom, fix close bug
commit407e973fcc4bf33964851f2f01817c1958479868
authorJiri Slaby <jirislaby@gmail.com>
Mon, 4 Dec 2006 13:06:36 +0000 (4 14:06 +0100)
committerAdrian Bunk <bunk@stusta.de>
Mon, 4 Dec 2006 13:06:36 +0000 (4 14:06 +0100)
tree77bee0f2f44a99e6175dae7c3bce4d200955a1b5
parent2491185f7a9a5592dba42547ffff1f56bf5af66f
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: Adrian Bunk <bunk@stusta.de>
drivers/char/isicom.c