]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/mxser.c
[PATCH] Char: mxser, fix oops when removing opened
[linux-2.6-omap-h63xx.git] / drivers / char / mxser.c
index c063359baf78ea1f2f020124e4b5f18e598e9db0..83f604b19290706f3a04577c463a4cfeec029a0a 100644 (file)
@@ -717,6 +717,7 @@ static int mxser_init(void)
 
        /* Initialize the tty_driver structure */
        memset(mxvar_sdriver, 0, sizeof(struct tty_driver));
+       mxvar_sdriver->owner = THIS_MODULE;
        mxvar_sdriver->magic = TTY_DRIVER_MAGIC;
        mxvar_sdriver->name = "ttyMI";
        mxvar_sdriver->major = ttymajor;