[int13] Avoid potential division by zero
authorMichael Brown <mcb30@ipxe.org>
Thu, 26 Jan 2017 09:31:40 +0000 (09:31 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 26 Jan 2017 09:31:40 +0000 (09:31 +0000)
commitfcf77515650272b9b51e18c115c66f48d33481b0
treeca04739455aebc3c53cfc437b3b348bc46d8c5f5
parentf3ba0fb5fdd866961b5dfc0d227af60b25753f0e
[int13] Avoid potential division by zero

Avoid using a zero sector count to guess the disk geometry, since that
would result in a division by zero when calculating the number of
cylinders.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/interface/pcbios/int13.c