From: Jiri Slaby Date: Wed, 24 Nov 2010 13:54:54 +0000 (+0000) Subject: NET: wan/x25_asy, move lapb_unregister to x25_asy_close_tty X-Git-Tag: v2.6.37-rc4~4^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03fe5f3ef7eab88e1405baa52a7923fbf337230b;p=pandora-kernel.git NET: wan/x25_asy, move lapb_unregister to x25_asy_close_tty We register lapb when tty is created, but unregister it only when the device is UP. So move the lapb_unregister to x25_asy_close_tty after the device is down. The old behaviour causes ldisc switching to fail each second attempt, because we noted for us that the device is unused, so we use it the second time, but labp layer still have it registered, so it fails obviously. Signed-off-by: Jiri Slaby Reported-by: Sergey Lapin Cc: Andrew Hendry Tested-by: Sergey Lapin Tested-by: Mikhail Ulyanov Signed-off-by: David S. Miller --- Reading git-diff-tree failed