Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 722d5e4a authored by Jiri Slaby's avatar Jiri Slaby Committed by Linus Torvalds
Browse files

[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: default avatarJiri Slaby <jirislaby@gmail.com>
Cc: <osv@javad.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f64c84a1
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;