TTY: isdn/gigaset destroy tty_port properly
authorJiri Slaby <jslaby@suse.cz>
Mon, 19 Nov 2012 19:11:42 +0000 (20:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2012 23:13:36 +0000 (15:13 -0800)
commit1862c14e107a5a21402852b0256b3c87bc1a5b00
tree37028a856466161cde73025bd69e0c50be5a026d
parenta547e5e0d8b85ccc640756eb40b3dd6b33796cf8
TTY: isdn/gigaset destroy tty_port properly

Currently, the port may be destroyed twice or destroyed without being
initialized. Fix this by sticking the destroy call in the right place
as suggested by Tilman.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Reported-by: Tilman Schmidt <tilman@imap.cc>
Cc: Hansjoerg Lipp <hjlipp@web.de>
Cc: gigaset307x-common@lists.sourceforge.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/isdn/gigaset/common.c