--- linux/kernel/blk_drv/floppy.c 2018/04/24 18:08:12 1.1.1.7 +++ linux/kernel/blk_drv/floppy.c 2018/04/24 18:11:35 1.1.1.9 @@ -35,7 +35,7 @@ /* * Automatic floppy-detection and formatting written by Werner Almesberger * (almesber@nessie.cs.id.ethz.ch), who also corrected some problems with - * the floppy-change signa| detection. + * the floppy-change signal detection. */ #include @@ -785,7 +785,7 @@ repeat: if (current_drive != (format_req.device & 3)) current_track = NO_TRACK; current_drive = format_req.device & 3; - if (format_req.track < 0 || format_req.track >= floppy->track || + if (((unsigned) format_req.track) >= floppy->track || (format_req.head & 0xfffe) || probing) { request_done(0); goto repeat; @@ -942,7 +942,8 @@ static void config_types(void) { printk("Floppy drive(s): "); base_type[0] = find_base(0,(CMOS_READ(0x10) >> 4) & 15); - if (((CMOS_READ(0x14) >> 6) & 1) == 0) base_type[0] = NULL; + if (((CMOS_READ(0x14) >> 6) & 1) == 0) + base_type[1] = NULL; else { printk(", "); base_type[1] = find_base(1,CMOS_READ(0x10) & 15);