alistair23-linux/drivers/ide
Alan Cox fdb77da4ca ide-floppy: Fix unformatted media crash
A ZIP or similar with unformatted media will cause crashes when attempts
are made to read/write it in some cases. This is because bs_factor is
zero and we divide by it causing an oops.

As the size of a non-accessible/non-existant media is really a bit of a
zen question it doesn't matter if non-existant media is 512 bytes per
sector or zero. Setting it to 1 causes us to generate 512 bytes/sector
accesses and error properly.

Based on a fix found lurking in an ancient bugzilla entry since about 2004 (ugghhh)

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2007-02-17 02:40:20 +01:00
..
arm Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
cris Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
h8300 fix file specification in comments 2006-10-03 23:01:26 +02:00
legacy [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
mips [PATCH] swarm: Actually initialize the IDE driver 2006-10-06 08:53:41 -07:00
pci atiixp/jmicron/triflex: fix PIO fallback 2007-02-17 02:40:20 +01:00
ppc [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
ide-acpi.c ide-acpi support warning fix 2007-02-07 18:19:42 +01:00
ide-cd.c [PATCH] ide-cd: Handle strange interrupt on the Intel ESB2 2006-12-10 09:57:20 -08:00
ide-cd.h [PATCH] ide-cd: remove write-only cmd field from struct cdrom_info 2005-12-15 02:20:49 +01:00
ide-disk.c [PATCH] Split struct request ->flags into two parts 2006-09-30 20:23:37 +02:00
ide-dma.c [PATCH] ide: remove dma_base2 field from ide_hwif_t 2006-10-03 08:04:08 -07:00
ide-floppy.c ide-floppy: Fix unformatted media crash 2007-02-17 02:40:20 +01:00
ide-generic.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ide-io.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
ide-iops.c [PATCH] ide: Fix crash on repeated reset 2006-10-03 08:04:08 -07:00
ide-lib.c [PATCH] ide_dma_speed() fixes 2006-10-03 08:04:07 -07:00
ide-pnp.c ide: unregister idepnp driver on unload 2007-01-27 13:47:02 +01:00
ide-probe.c ACPI support for IDE devices 2007-02-07 18:19:37 +01:00
ide-proc.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
ide-tape.c [PATCH] mark struct file_operations const 3 2007-02-12 09:48:45 -08:00
ide-taskfile.c [PATCH] ide: add sanity checking to ide taskfile ioctl 2006-10-16 08:27:54 -07:00
ide-timing.h [PATCH] ide: actually honor drive's minimum PIO/DMA cycle times 2006-06-26 09:58:27 -07:00
ide.c ACPI support for IDE devices 2007-02-07 18:19:37 +01:00
Kconfig ACPI support for IDE devices 2007-02-07 18:19:37 +01:00
Makefile ACPI support for IDE devices 2007-02-07 18:19:37 +01:00
setup-pci.c PCI: add the sysfs driver name to all modules 2007-02-07 10:37:12 -08:00