Files
ubports_kernel_google_msm/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
..
2006-10-03 23:01:26 +02:00
2007-02-07 18:19:42 +01:00
2006-10-03 08:04:07 -07:00
2007-02-07 18:19:37 +01:00
2007-02-07 18:19:37 +01:00
2007-02-07 18:19:37 +01:00
2007-02-07 18:19:37 +01:00