Re: [PATCH] 2.5.68-bk1 crash in devfs_remove() for defpts files

From: Christoph Hellwig (hch@lst.de)
Date: Mon Apr 21 2003 - 12:58:47 EST


On Mon, Apr 21, 2003 at 07:55:55PM +0200, Christoph Hellwig wrote:
> Could you please try this patch?

Better this one :) Sorry.

--- 1.11/drivers/char/pty.c Mon Mar 31 03:16:19 2003
+++ edited/drivers/char/pty.c Mon Apr 21 18:37:00 2003
@@ -448,17 +448,14 @@
                         init_waitqueue_head(&ptm_state[i][j].open_wait);
                 
                 pts_driver[i] = pty_slave_driver;
-#ifdef CONFIG_DEVFS_FS
- pts_driver[i].name = "pts/%d";
-#else
                 pts_driver[i].name = "pts";
-#endif
                 pts_driver[i].proc_entry = 0;
                 pts_driver[i].major = UNIX98_PTY_SLAVE_MAJOR+i;
                 pts_driver[i].minor_start = 0;
                 pts_driver[i].name_base = i*NR_PTYS;
                 pts_driver[i].num = ptm_driver[i].num;
                 pts_driver[i].other = &ptm_driver[i];
+ pts_driver[i].flags |= TTY_DRIVER_NO_DEVFS;
                 pts_driver[i].table = pts_table[i];
                 pts_driver[i].termios = pts_termios[i];
                 pts_driver[i].termios_locked = pts_termios_locked[i];
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Apr 23 2003 - 22:00:30 EST