Oops in 2.5.44's fs/block_dev.c:do_open() when trying to mount a badly formated floppy

From: Luc Van Oostenryck (luc.vanoostenryck@easynet.be)
Date: Tue Oct 22 2002 - 17:41:25 EST


Offending code is:
     663 if (bdev->bd_invalidated)
     664 rescan_partitions(disk, bdev);
     665 } else {
     666 down(&bdev->bd_contains->bd_sem);
     667 bdev->bd_contains->bd_part_count++;
     668 if (!bdev->bd_openers) {
     669 struct hd_struct *p;
     670 p = disk->part + part - 1;
                                     ^^^^^^^^^^

                         this is NULL when the floppy is badly formatted

The problem is not present in 2.5.43, but is also present in 2.5.44-ac1

Luc Van Oostenryck

-
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 Oct 23 2002 - 22:01:01 EST