audk/MdeModulePkg/Bus/Usb/UsbMassStorageDxe
rsun3 88e349f1fe Fixed a bug that the system hangs with an assert in DiskIo.c that is division overflow due to block size == 0 when no flppy media is present in a specific type of USB floppy drive (NEC PC-VP-BU04)at power on.
Root cause is that Read Capacity command returns media not present error, then UsbMassStorage driver issues Sense Request command to get the sense data. However, the USB floppy drive still returns the previous error for the Sense Request command. UsbBootRequestSense() does not handle this case correctly and returns EFI_SUCCESS so that the block size of the Block IO protocol instance is set to be 0.

Solution is to fix the logic to handle the case and add protective logic to avoid setting block size to be 0.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8979 6f19259b-4bc3-4df7-8a09-765794883524
2009-07-23 01:30:16 +00:00
..
ComponentName.c Replace references to RFC 3066 with RFC 4646. 2009-04-30 05:32:11 +00:00
UsbMass.h Update USB Mass Storage driver to declare its dependency on the BaseLib 2009-05-20 20:04:23 +00:00
UsbMassBoot.c Fixed a bug that the system hangs with an assert in DiskIo.c that is division overflow due to block size == 0 when no flppy media is present in a specific type of USB floppy drive (NEC PC-VP-BU04)at power on. 2009-07-23 01:30:16 +00:00
UsbMassBoot.h Refine USB Mass Storage Driver. 2009-01-12 07:30:42 +00:00
UsbMassBot.c Minor refinement for USB modules. 2009-01-13 08:46:31 +00:00
UsbMassBot.h Refine USB Mass Storage Driver. 2009-01-12 07:30:42 +00:00
UsbMassCbi.c Minor refinement for USB modules. 2009-01-13 08:46:31 +00:00
UsbMassCbi.h Refine USB Mass Storage Driver. 2009-01-12 07:30:42 +00:00
UsbMassImpl.c enhanced security check. 2009-02-13 03:36:02 +00:00
UsbMassImpl.h Replace references to RFC 3066 with RFC 4646. 2009-04-30 05:32:11 +00:00
UsbMassStorageDxe.inf Update USB Mass Storage driver to declare its dependency on the BaseLib 2009-05-20 20:04:23 +00:00