summaryrefslogtreecommitdiffstats
path: root/drivers/char/mxser_new.c
diff options
context:
space:
mode:
authorJiri Slaby2007-02-10 10:45:22 +0100
committerLinus Torvalds2007-02-11 19:51:29 +0100
commit722d5e4ae89f061582cc46ccbbd3b5ae87a6e165 (patch)
tree3f73ee6a96b26e119696daea26e673c1bce9ca44 /drivers/char/mxser_new.c
parent[PATCH] Char: mxser_new, upgrade to 1.9.15 (diff)
downloadkernel-qcow2-linux-722d5e4ae89f061582cc46ccbbd3b5ae87a6e165.tar.gz
kernel-qcow2-linux-722d5e4ae89f061582cc46ccbbd3b5ae87a6e165.tar.xz
kernel-qcow2-linux-722d5e4ae89f061582cc46ccbbd3b5ae87a6e165.zip
[PATCH] Char: mxser_new, do not null driver_data
driver_data are initialzed to NULL from tty layer, no need to do it in the driver. In this case it cases oops, since driver_data may be NULL for a short while for another closing process. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Cc: <osv@javad.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/mxser_new.c')
-rw-r--r--drivers/char/mxser_new.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/char/mxser_new.c b/drivers/char/mxser_new.c
index 4c805496fb36..1c8e00c4caad 100644
--- a/drivers/char/mxser_new.c
+++ b/drivers/char/mxser_new.c
@@ -927,9 +927,6 @@ static int mxser_open(struct tty_struct *tty, struct file *filp)
struct mxser_port *info;
int retval, line;
- /* initialize driver_data in case something fails */
- tty->driver_data = NULL;
-
line = tty->index;
if (line == MXSER_PORTS)
return 0;