From: Jiri Slaby Date: Sat, 10 Feb 2007 09:45:22 +0000 (-0800) Subject: [PATCH] Char: mxser_new, do not null driver_data X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=722d5e4ae89f061582cc46ccbbd3b5ae87a6e165;p=linux-beck.git [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 Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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;