linux_dsm_epyc7002/drivers/isdn
Jiri Slaby fc258f8940 TTY: isdn/gigaset, do not set tty->driver_data to NULL
Close the window in open where driver_data is reset to NULL on each
open. It could cause other processes to get invalid retval from the
tty->ops operations because of the checks all over the code.

With this change we may do other cleanups. Now, the only valid check
for tty->driver_data != NULL is in close. This can happen only if open
fails at gigaset_get_cs_by_tty or try_module_get. The rest of checks
in various tty->ops->* are invalid as driver_data cannot be NULL
there. The same holds for cs->open_count. So remove them.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Hansjoerg Lipp <hjlipp@web.de>
Cc: Tilman Schmidt <tilman@imap.cc>
Cc: gigaset307x-common@lists.sourceforge.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-03-08 12:51:13 -08:00
..
act2000 isdn: Free irq_data namespace 2010-10-04 11:00:55 +02:00
capi TTY: remove unneeded tty->index checks 2012-03-08 11:42:21 -08:00
divert isdn: make sure strings are null terminated 2011-11-29 18:39:36 -05:00
gigaset TTY: isdn/gigaset, do not set tty->driver_data to NULL 2012-03-08 12:51:13 -08:00
hardware module_param: make bool parameters really bool (drivers & misc) 2012-01-13 09:32:20 +10:30
hisax misc latin1 to utf8 conversions 2012-01-02 13:04:55 +01:00
hysdn Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2011-04-11 13:44:25 -07:00
i4l TTY: remove unneeded tty->index checks 2012-03-08 11:42:21 -08:00
icn isdn: icn: Fix potentially wrong string handling 2011-02-01 14:17:51 -08:00
isdnloop Fix common misspellings 2011-03-31 11:26:23 -03:00
mISDN drivers/isdn: Add export.h for EXPORT_SYMBOL/THIS_MODULE as required. 2011-10-31 19:31:49 -04:00
pcbit drivers/isdn: Use static const char * const where possible 2010-09-14 20:22:02 -07:00
sc module_param: make bool parameters really bool (drivers & misc) 2012-01-13 09:32:20 +10:30
Kconfig um: switch to use of drivers/Kconfig 2011-11-02 14:15:41 +01:00
Makefile mISDN fix main ISDN Makefile 2008-08-02 16:28:20 +02:00