android_kernel_xiaomi_sm8350/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
cris
h8300
legacy [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
mips
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
ide-cd.h
ide-disk.c
ide-dma.c
ide-floppy.c ide-floppy: Fix unformatted media crash 2007-02-17 02:40:20 +01:00
ide-generic.c
ide-io.c
ide-iops.c
ide-lib.c
ide-pnp.c
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
ide-timing.h
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