Commit:     722d5e4ae89f061582cc46ccbbd3b5ae87a6e165
Parent:     f64c84a1668930d1ca2b7dbaa92146c2139cb508
Author:     Jiri Slaby <[EMAIL PROTECTED]>
AuthorDate: Sat Feb 10 01:45:22 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Sun Feb 11 10:51:29 2007 -0800

    [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 
    while for another closing process.
    Signed-off-by: Jiri Slaby <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 drivers/char/mxser_new.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/char/mxser_new.c b/drivers/char/mxser_new.c
index 4c80549..1c8e00c 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 
        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;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to