In 2.3.46 the zftape init procedure was changed to invoke the
devfs registration procedures. Unfortunately, the change in 2.3.46
also added a buffer overrun error ("char devname[8];" is one byte
too short for "nrawqft%i"), leading to weird boot errors and a
dysfunctional kernel. The patch below fixes this. Please apply.
/Mikael
--- linux-2.3.46/drivers/char/ftape/zftape/zftape-init.c.~1~ Thu Feb 17 15:02:36 2000
+++ linux-2.3.46/drivers/char/ftape/zftape/zftape-init.c Thu Feb 17 18:05:59 2000
@@ -436,7 +436,7 @@
TRACE_CATCH(devfs_register_chrdev(QIC117_TAPE_MAJOR, "zft", &zft_cdev),);
for (i = 0; i < 4; i++) {
- char devname[8];
+ char devname[9];
sprintf (devname, "qft%i", i);
devfs_register (NULL, devname, 0, DEVFS_FL_NONE,
@@ -510,7 +510,7 @@
void cleanup_module(void)
{
int i;
- char devname[8];
+ char devname[9];
TRACE_FUN(ft_t_flow);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:19 EST