summaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/piix.c
diff options
context:
space:
mode:
authorAlan Cox <alan@redhat.com>2007-02-17 02:40:20 +0100
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-02-17 02:40:20 +0100
commitfdb77da4ca68ae17a39d58c9d5c00479a7e124c0 (patch)
tree7dbeb5c579c3e067c5f8c6dedef243c2638fcf7f /drivers/ide/pci/piix.c
parent39baf8a798926eb675c9360d5822ca86ed92866e (diff)
downloadop-kernel-dev-fdb77da4ca68ae17a39d58c9d5c00479a7e124c0.zip
op-kernel-dev-fdb77da4ca68ae17a39d58c9d5c00479a7e124c0.tar.gz
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>
Diffstat (limited to 'drivers/ide/pci/piix.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud